diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
commit | 11f31c37e5fa4889d9989f10272f44845449cb7b (patch) | |
tree | 4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/widgets/PluginControl.cpp | |
parent | 832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff) | |
download | rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.tar.gz rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.zip |
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/widgets/PluginControl.cpp')
-rw-r--r-- | src/gui/widgets/PluginControl.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/src/gui/widgets/PluginControl.cpp b/src/gui/widgets/PluginControl.cpp index acf33ea..69e9591 100644 --- a/src/gui/widgets/PluginControl.cpp +++ b/src/gui/widgets/PluginControl.cpp @@ -30,21 +30,21 @@ #include "gui/general/GUIPalette.h" #include "gui/studio/AudioPluginManager.h" #include "gui/widgets/Rotary.h" -#include <qfont.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qobject.h> -#include <qstring.h> -#include <qwidget.h> +#include <tqfont.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqobject.h> +#include <tqstring.h> +#include <tqwidget.h> #include <cmath> namespace Rosegarden { -PluginControl::PluginControl(QWidget *parent, - QGridLayout *layout, +PluginControl::PluginControl(TQWidget *parent, + TQGridLayout *layout, ControlType type, PluginPort *port, AudioPluginManager *aPM, @@ -52,18 +52,18 @@ PluginControl::PluginControl(QWidget *parent, float initialValue, bool showBounds, bool hidden): - QObject(parent), + TQObject(parent), m_layout(layout), m_type(type), m_port(port), m_pluginManager(aPM), m_index(index) { - QFont plainFont; + TQFont plainFont; plainFont.setPointSize((plainFont.pointSize() * 9 ) / 10); - QLabel *controlTitle = - new QLabel(QString("%1 ").arg(strtoqstr(port->getName())), parent); + TQLabel *controlTitle = + new TQLabel(TQString("%1 ").arg(strtoqstr(port->getName())), parent); controlTitle->setFont(plainFont); if (type == Rotary) { @@ -118,12 +118,12 @@ PluginControl::PluginControl(QWidget *parent, initialValue = log10f(initialValue); } - QLabel *low; + TQLabel *low; if (port->getDisplayHint() & (PluginPort::Integer | PluginPort::Toggled)) { - low = new QLabel(QString("%1").arg(int(displayLower)), parent); + low = new TQLabel(TQString("%1").arg(int(displayLower)), parent); } else { - low = new QLabel(QString("%1").arg(displayLower), parent); + low = new TQLabel(TQString("%1").arg(displayLower), parent); } low->setFont(plainFont); @@ -148,23 +148,23 @@ PluginControl::PluginControl(QWidget *parent, m_dial->setKnobColour(GUIPalette::getColour(GUIPalette::RotaryPlugin)); - connect(m_dial, SIGNAL(valueChanged(float)), - this, SLOT(slotValueChanged(float))); + connect(m_dial, TQT_SIGNAL(valueChanged(float)), + this, TQT_SLOT(slotValueChanged(float))); - QLabel *upp; + TQLabel *upp; if (port->getDisplayHint() & (PluginPort::Integer | PluginPort::Toggled)) { - upp = new QLabel(QString("%1").arg(int(displayUpper)), parent); + upp = new TQLabel(TQString("%1").arg(int(displayUpper)), parent); } else { - upp = new QLabel(QString("%1").arg(displayUpper), parent); + upp = new TQLabel(TQString("%1").arg(displayUpper), parent); } upp->setFont(plainFont); - QWidgetItem *item; + TQWidgetItem *item; if (!hidden) { controlTitle->show(); - item = new QWidgetItem(controlTitle); + item = new TQWidgetItem(controlTitle); item->setAlignment(Qt::AlignRight | Qt::AlignBottom); m_layout->addItem(item); } else { @@ -173,7 +173,7 @@ PluginControl::PluginControl(QWidget *parent, if (showBounds && !hidden) { low->show(); - item = new QWidgetItem(low); + item = new TQWidgetItem(low); item->setAlignment(Qt::AlignRight | Qt::AlignBottom); m_layout->addItem(item); } else { @@ -182,7 +182,7 @@ PluginControl::PluginControl(QWidget *parent, if (!hidden) { m_dial->show(); - item = new QWidgetItem(m_dial); + item = new TQWidgetItem(m_dial); item->setAlignment(Qt::AlignCenter); m_layout->addItem(item); } else { @@ -191,7 +191,7 @@ PluginControl::PluginControl(QWidget *parent, if (showBounds && !hidden) { upp->show(); - item = new QWidgetItem(upp); + item = new TQWidgetItem(upp); item->setAlignment(Qt::AlignLeft | Qt::AlignBottom); m_layout->addItem(item); } else { |