summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/PluginControl.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-02 22:38:52 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-02 22:38:52 +0000
commit458efa7b0c935cbaafa2791021a5f8f7241aa876 (patch)
tree624583f2873febe23770bee3fa94b5c24bd59f4f /src/gui/widgets/PluginControl.cpp
parent747037b72944ae2c02962b7c5c96e0a7f8852e38 (diff)
downloadrosegarden-458efa7b0c935cbaafa2791021a5f8f7241aa876.tar.gz
rosegarden-458efa7b0c935cbaafa2791021a5f8f7241aa876.zip
Initial TQt4 port of Rosegarden
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1230242 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/widgets/PluginControl.cpp')
-rw-r--r--src/gui/widgets/PluginControl.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/gui/widgets/PluginControl.cpp b/src/gui/widgets/PluginControl.cpp
index 69e9591..1f546da 100644
--- a/src/gui/widgets/PluginControl.cpp
+++ b/src/gui/widgets/PluginControl.cpp
@@ -43,8 +43,8 @@
namespace Rosegarden
{
-PluginControl::PluginControl(TQWidget *parent,
- TQGridLayout *layout,
+PluginControl::PluginControl(TQWidget *tqparent,
+ TQGridLayout *tqlayout,
ControlType type,
PluginPort *port,
AudioPluginManager *aPM,
@@ -52,8 +52,8 @@ PluginControl::PluginControl(TQWidget *parent,
float initialValue,
bool showBounds,
bool hidden):
- TQObject(parent),
- m_layout(layout),
+ TQObject(tqparent),
+ m_tqlayout(tqlayout),
m_type(type),
m_port(port),
m_pluginManager(aPM),
@@ -63,7 +63,7 @@ PluginControl::PluginControl(TQWidget *parent,
plainFont.setPointSize((plainFont.pointSize() * 9 ) / 10);
TQLabel *controlTitle =
- new TQLabel(TQString("%1 ").arg(strtoqstr(port->getName())), parent);
+ new TQLabel(TQString("%1 ").tqarg(strtoqstr(port->getName())), tqparent);
controlTitle->setFont(plainFont);
if (type == Rotary) {
@@ -121,9 +121,9 @@ PluginControl::PluginControl(TQWidget *parent,
TQLabel *low;
if (port->getDisplayHint() &
(PluginPort::Integer | PluginPort::Toggled)) {
- low = new TQLabel(TQString("%1").arg(int(displayLower)), parent);
+ low = new TQLabel(TQString("%1").tqarg(int(displayLower)), tqparent);
} else {
- low = new TQLabel(TQString("%1").arg(displayLower), parent);
+ low = new TQLabel(TQString("%1").tqarg(displayLower), tqparent);
}
low->setFont(plainFont);
@@ -134,7 +134,7 @@ PluginControl::PluginControl(TQWidget *parent,
// << ", actual upper " << upperBound << ", step "
// << step << std::endl;
- m_dial = new ::Rosegarden::Rotary(parent,
+ m_dial = new ::Rosegarden::Rotary(tqparent,
lowerBound, // min
upperBound, // max
step, // step
@@ -154,9 +154,9 @@ PluginControl::PluginControl(TQWidget *parent,
TQLabel *upp;
if (port->getDisplayHint() &
(PluginPort::Integer | PluginPort::Toggled)) {
- upp = new TQLabel(TQString("%1").arg(int(displayUpper)), parent);
+ upp = new TQLabel(TQString("%1").tqarg(int(displayUpper)), tqparent);
} else {
- upp = new TQLabel(TQString("%1").arg(displayUpper), parent);
+ upp = new TQLabel(TQString("%1").tqarg(displayUpper), tqparent);
}
upp->setFont(plainFont);
@@ -165,8 +165,8 @@ PluginControl::PluginControl(TQWidget *parent,
if (!hidden) {
controlTitle->show();
item = new TQWidgetItem(controlTitle);
- item->setAlignment(Qt::AlignRight | Qt::AlignBottom);
- m_layout->addItem(item);
+ item->tqsetAlignment(TQt::AlignRight | TQt::AlignBottom);
+ m_tqlayout->addItem(item);
} else {
controlTitle->hide();
}
@@ -174,8 +174,8 @@ PluginControl::PluginControl(TQWidget *parent,
if (showBounds && !hidden) {
low->show();
item = new TQWidgetItem(low);
- item->setAlignment(Qt::AlignRight | Qt::AlignBottom);
- m_layout->addItem(item);
+ item->tqsetAlignment(TQt::AlignRight | TQt::AlignBottom);
+ m_tqlayout->addItem(item);
} else {
low->hide();
}
@@ -183,8 +183,8 @@ PluginControl::PluginControl(TQWidget *parent,
if (!hidden) {
m_dial->show();
item = new TQWidgetItem(m_dial);
- item->setAlignment(Qt::AlignCenter);
- m_layout->addItem(item);
+ item->tqsetAlignment(TQt::AlignCenter);
+ m_tqlayout->addItem(item);
} else {
m_dial->hide();
}
@@ -192,8 +192,8 @@ PluginControl::PluginControl(TQWidget *parent,
if (showBounds && !hidden) {
upp->show();
item = new TQWidgetItem(upp);
- item->setAlignment(Qt::AlignLeft | Qt::AlignBottom);
- m_layout->addItem(item);
+ item->tqsetAlignment(TQt::AlignLeft | TQt::AlignBottom);
+ m_tqlayout->addItem(item);
} else {
upp->hide();
}