From 11f31c37e5fa4889d9989f10272f44845449cb7b Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 6 Sep 2010 20:59:29 +0000 Subject: Initial TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/gui/configuration/GeneralConfigurationPage.cpp | 84 +++++++++++----------- 1 file changed, 42 insertions(+), 42 deletions(-) (limited to 'src/gui/configuration/GeneralConfigurationPage.cpp') diff --git a/src/gui/configuration/GeneralConfigurationPage.cpp b/src/gui/configuration/GeneralConfigurationPage.cpp index 22915ed..d6c850e 100644 --- a/src/gui/configuration/GeneralConfigurationPage.cpp +++ b/src/gui/configuration/GeneralConfigurationPage.cpp @@ -39,19 +39,19 @@ #include #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace Rosegarden @@ -59,7 +59,7 @@ namespace Rosegarden GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc, KConfig *cfg, - QWidget *parent, const char *name) + TQWidget *parent, const char *name) : TabbedConfigurationPage(cfg, parent, name), m_doc(doc), m_client(0), @@ -68,23 +68,23 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc, { m_cfg->setGroup(GeneralOptionsConfigGroup); - QFrame *frame; - QGridLayout *layout; - QLabel *label = 0; + TQFrame *frame; + TQGridLayout *layout; + TQLabel *label = 0; int row = 0; // // "Behavior" tab // - frame = new QFrame(m_tabWidget); - layout = new QGridLayout(frame, + frame = new TQFrame(m_tabWidget); + layout = new TQGridLayout(frame, 6, 2, // nbrow, nbcol 10, 5); layout->setRowSpacing(row, 15); ++row; - layout->addWidget(new QLabel(i18n("Double-click opens segment in"), + layout->addWidget(new TQLabel(i18n("Double-click opens segment in"), frame), row, 0); m_client = new KComboBox(frame); @@ -96,17 +96,17 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc, layout->addMultiCellWidget(m_client, row, row, 1, 2); ++row; - layout->addWidget(new QLabel(i18n("Number of count-in measures when recording"), + layout->addWidget(new TQLabel(i18n("Number of count-in measures when recording"), frame), row, 0); - m_countIn = new QSpinBox(frame); + m_countIn = new TQSpinBox(frame); m_countIn->setValue(m_cfg->readUnsignedNumEntry("countinbars", 0)); m_countIn->setMaxValue(10); m_countIn->setMinValue(0); layout->addMultiCellWidget(m_countIn, row, row, 1, 2); ++row; - layout->addWidget(new QLabel(i18n("Auto-save interval"), frame), row, 0); + layout->addWidget(new TQLabel(i18n("Auto-save interval"), frame), row, 0); m_autoSave = new KComboBox(frame); m_autoSave->insertItem(i18n("Every 30 seconds")); @@ -137,10 +137,10 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc, #ifdef HAVE_LIBJACK m_cfg->setGroup(SequencerOptionsConfigGroup); - label = new QLabel(i18n("Use JACK transport"), frame); + label = new TQLabel(i18n("Use JACK transport"), frame); layout->addWidget(label, row, 0); - m_jackTransport = new QCheckBox(frame); + m_jackTransport = new TQCheckBox(frame); layout->addMultiCellWidget(m_jackTransport, row, row, 1, 2); // m_jackTransport->insertItem(i18n("Ignore JACK transport")); @@ -168,9 +168,9 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc, layout->setRowSpacing(row, 20); ++row; - layout->addWidget(new QLabel(i18n("Sequencer status"), frame), row, 0); + layout->addWidget(new TQLabel(i18n("Sequencer status"), frame), row, 0); - QString status(i18n("Unknown")); + TQString status(i18n("Unknown")); SequenceManager *mgr = doc->getSequenceManager(); if (mgr) { int driverStatus = mgr->getSoundDriverStatus() & (AUDIO_OK | MIDI_OK); @@ -190,12 +190,12 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc, } } - layout->addWidget(new QLabel(status, frame), row, 1); + layout->addWidget(new TQLabel(status, frame), row, 1); - QPushButton *showStatusButton = new QPushButton(i18n("Details..."), + TQPushButton *showStatusButton = new TQPushButton(i18n("Details..."), frame); - QObject::connect(showStatusButton, SIGNAL(clicked()), - this, SLOT(slotShowStatus())); + TQObject::connect(showStatusButton, TQT_SIGNAL(clicked()), + this, TQT_SLOT(slotShowStatus())); layout->addWidget(showStatusButton, row, 2, Qt::AlignRight); ++row; @@ -206,8 +206,8 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc, // // "Appearance" tab // - frame = new QFrame(m_tabWidget); - layout = new QGridLayout(frame, + frame = new TQFrame(m_tabWidget); + layout = new TQGridLayout(frame, 7, 4, // nbrow, nbcol -- one extra row improves layout 10, 5); @@ -216,7 +216,7 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc, layout->setRowSpacing(row, 15); ++row; - layout->addWidget(new QLabel(i18n("Side-bar parameter box layout"), + layout->addWidget(new TQLabel(i18n("Side-bar parameter box layout"), frame), row, 0); m_sidebarStyle = new KComboBox(frame); @@ -230,7 +230,7 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc, layout->addMultiCellWidget(m_sidebarStyle, row, row, 1, 3); ++row; - layout->addWidget(new QLabel(i18n("Note name style"), + layout->addWidget(new TQLabel(i18n("Note name style"), frame), row, 0); m_nameStyle = new KComboBox(frame); @@ -240,24 +240,24 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc, layout->addMultiCellWidget(m_nameStyle, row, row, 1, 3); ++row; /* - layout->addWidget(new QLabel(i18n("Show tool context help in status bar"), frame), row, 0); + layout->addWidget(new TQLabel(i18n("Show tool context help in status bar"), frame), row, 0); - m_toolContextHelp = new QCheckBox(frame); + m_toolContextHelp = new TQCheckBox(frame); layout->addWidget(m_toolContextHelp, row, 1); m_toolContextHelp->setChecked(m_cfg->readBoolEntry ("toolcontexthelp", true)); ++row; */ - layout->addWidget(new QLabel(i18n("Show textured background on"), frame), row, 0); + layout->addWidget(new TQLabel(i18n("Show textured background on"), frame), row, 0); - m_backgroundTextures = new QCheckBox(i18n("Main window"), frame); + m_backgroundTextures = new TQCheckBox(i18n("Main window"), frame); layout->addWidget(m_backgroundTextures, row, 1); - m_matrixBackgroundTextures = new QCheckBox(i18n("Matrix"), frame); + m_matrixBackgroundTextures = new TQCheckBox(i18n("Matrix"), frame); layout->addWidget(m_matrixBackgroundTextures, row, 2); - m_notationBackgroundTextures = new QCheckBox(i18n("Notation"), frame); + m_notationBackgroundTextures = new TQCheckBox(i18n("Notation"), frame); layout->addWidget(m_notationBackgroundTextures, row, 3); m_backgroundTextures->setChecked(m_cfg->readBoolEntry @@ -272,7 +272,7 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc, m_cfg->setGroup(GeneralOptionsConfigGroup); ++row; - layout->addWidget(new QLabel(i18n("Use bundled Klearlook theme"), frame), row, 0); + layout->addWidget(new TQLabel(i18n("Use bundled Klearlook theme"), frame), row, 0); m_globalStyle = new KComboBox(frame); m_globalStyle->insertItem(i18n("Never")); m_globalStyle->insertItem(i18n("When not running under KDE")); -- cgit v1.2.1