diff options
Diffstat (limited to 'src/gui/widgets/PluginControl.cpp')
-rw-r--r-- | src/gui/widgets/PluginControl.cpp | 36 |
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(); } |