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/dialogs/RescaleDialog.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/dialogs/RescaleDialog.cpp')
-rw-r--r-- | src/gui/dialogs/RescaleDialog.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gui/dialogs/RescaleDialog.cpp b/src/gui/dialogs/RescaleDialog.cpp index d99a6fb..f47cafb 100644 --- a/src/gui/dialogs/RescaleDialog.cpp +++ b/src/gui/dialogs/RescaleDialog.cpp @@ -31,18 +31,18 @@ #include "gui/widgets/TimeWidget.h" #include <kconfig.h> #include <kdialogbase.h> -#include <qcheckbox.h> -#include <qgroupbox.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqcheckbox.h> +#include <tqgroupbox.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> #include <kapplication.h> namespace Rosegarden { -RescaleDialog::RescaleDialog(QWidget *parent, +RescaleDialog::RescaleDialog(TQWidget *parent, Composition *composition, timeT startTime, timeT originalDuration, @@ -50,7 +50,7 @@ RescaleDialog::RescaleDialog(QWidget *parent, bool constrainToCompositionDuration) : KDialogBase(parent, 0, true, i18n("Rescale"), User1 | Ok | Cancel) { - QVBox *vbox = makeVBoxMainWidget(); + TQVBox *vbox = makeVBoxMainWidget(); m_newDuration = new TimeWidget (i18n("Duration of selection"), vbox, composition, @@ -58,8 +58,8 @@ RescaleDialog::RescaleDialog(QWidget *parent, constrainToCompositionDuration); if (showCloseGapOption) { - QGroupBox *optionBox = new QGroupBox(1, Horizontal, i18n("Options"), vbox); - m_closeGap = new QCheckBox(i18n("Adjust times of following events accordingly"), + TQGroupBox *optionBox = new TQGroupBox(1, Horizontal, i18n("Options"), vbox); + m_closeGap = new TQCheckBox(i18n("Adjust times of following events accordingly"), optionBox); KConfig *config = kapp->config(); config->setGroup(GeneralOptionsConfigGroup); @@ -70,8 +70,8 @@ RescaleDialog::RescaleDialog(QWidget *parent, } setButtonText(User1, i18n("Reset")); - connect(this, SIGNAL(user1Clicked()), - m_newDuration, SLOT(slotResetToDefault())); + connect(this, TQT_SIGNAL(user1Clicked()), + m_newDuration, TQT_SLOT(slotResetToDefault())); } timeT @@ -111,7 +111,7 @@ RescaleDialog::slotFromChanged(int i) { m_from = i + 1; int perTenThou = m_to * 10000 / m_from; - m_percent->setText(QString("%1.%2%"). + m_percent->setText(TQString("%1.%2%"). arg(perTenThou / 100). arg(perTenThou % 100)); } @@ -121,7 +121,7 @@ RescaleDialog::slotToChanged(int i) { m_to = i + 1; int perTenThou = m_to * 10000 / m_from; - m_percent->setText(QString("%1.%2%"). + m_percent->setText(TQString("%1.%2%"). arg(perTenThou / 100). arg(perTenThou % 100)); } |