diff options
Diffstat (limited to 'src/gui/dialogs/ManageMetronomeDialog.cpp')
-rw-r--r-- | src/gui/dialogs/ManageMetronomeDialog.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/gui/dialogs/ManageMetronomeDialog.cpp b/src/gui/dialogs/ManageMetronomeDialog.cpp index 0b51e26..64b99f7 100644 --- a/src/gui/dialogs/ManageMetronomeDialog.cpp +++ b/src/gui/dialogs/ManageMetronomeDialog.cpp @@ -58,9 +58,9 @@ namespace Rosegarden { -ManageMetronomeDialog::ManageMetronomeDialog(TQWidget *parent, +ManageMetronomeDialog::ManageMetronomeDialog(TQWidget *tqparent, RosegardenGUIDoc *doc) : - KDialogBase(parent, 0, true, i18n("Metronome"), Ok | Apply | Close | Help), + KDialogBase(tqparent, 0, true, i18n("Metronome"), Ok | Apply | Close | Help), m_doc(doc) { setHelp("studio-metronome"); @@ -73,15 +73,15 @@ ManageMetronomeDialog::ManageMetronomeDialog(TQWidget *parent, TQVBox *vbox = new TQVBox(hbox); - TQGroupBox *deviceBox = new QGroupBox - (1, Horizontal, i18n("Metronome Instrument"), vbox); + TQGroupBox *deviceBox = new TQGroupBox + (1, Qt::Horizontal, i18n("Metronome Instrument"), vbox); TQFrame *frame = new TQFrame(deviceBox); - TQGridLayout *layout = new TQGridLayout(frame, 2, 2, 10, 5); + TQGridLayout *tqlayout = new TQGridLayout(frame, 2, 2, 10, 5); - layout->addWidget(new TQLabel(i18n("Device"), frame), 0, 0); + tqlayout->addWidget(new TQLabel(i18n("Device"), frame), 0, 0); m_metronomeDevice = new KComboBox(frame); - layout->addWidget(m_metronomeDevice, 0, 1); + tqlayout->addWidget(m_metronomeDevice, 0, 1); DeviceList *devices = doc->getStudio().getDevices(); DeviceListConstIterator it; @@ -108,47 +108,47 @@ ManageMetronomeDialog::ManageMetronomeDialog(TQWidget *parent, } } - layout->addWidget(new TQLabel(i18n("Instrument"), frame), 1, 0); + tqlayout->addWidget(new TQLabel(i18n("Instrument"), frame), 1, 0); m_metronomeInstrument = new KComboBox(frame); connect(m_metronomeInstrument, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotSetModified())); connect(m_metronomeInstrument, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotInstrumentChanged(int))); - layout->addWidget(m_metronomeInstrument, 1, 1); + tqlayout->addWidget(m_metronomeInstrument, 1, 1); - TQGroupBox *beatBox = new QGroupBox - (1, Horizontal, i18n("Beats"), vbox); + TQGroupBox *beatBox = new TQGroupBox + (1, Qt::Horizontal, i18n("Beats"), vbox); frame = new TQFrame(beatBox); - layout = new TQGridLayout(frame, 4, 2, 10, 5); + tqlayout = new TQGridLayout(frame, 4, 2, 10, 5); - layout->addWidget(new TQLabel(i18n("Resolution"), frame), 0, 0); + tqlayout->addWidget(new TQLabel(i18n("Resolution"), frame), 0, 0); m_metronomeResolution = new KComboBox(frame); m_metronomeResolution->insertItem(i18n("None")); m_metronomeResolution->insertItem(i18n("Bars only")); m_metronomeResolution->insertItem(i18n("Bars and beats")); m_metronomeResolution->insertItem(i18n("Bars, beats, and divisions")); connect(m_metronomeResolution, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotResolutionChanged(int))); - layout->addWidget(m_metronomeResolution, 0, 1); + tqlayout->addWidget(m_metronomeResolution, 0, 1); - layout->addWidget(new TQLabel(i18n("Bar velocity"), frame), 1, 0); + tqlayout->addWidget(new TQLabel(i18n("Bar velocity"), frame), 1, 0); m_metronomeBarVely = new TQSpinBox(frame); m_metronomeBarVely->setMinValue(0); m_metronomeBarVely->setMaxValue(127); connect(m_metronomeBarVely, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotSetModified())); - layout->addWidget(m_metronomeBarVely, 1, 1); + tqlayout->addWidget(m_metronomeBarVely, 1, 1); - layout->addWidget(new TQLabel(i18n("Beat velocity"), frame), 2, 0); + tqlayout->addWidget(new TQLabel(i18n("Beat velocity"), frame), 2, 0); m_metronomeBeatVely = new TQSpinBox(frame); m_metronomeBeatVely->setMinValue(0); m_metronomeBeatVely->setMaxValue(127); connect(m_metronomeBeatVely, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotSetModified())); - layout->addWidget(m_metronomeBeatVely, 2, 1); + tqlayout->addWidget(m_metronomeBeatVely, 2, 1); - layout->addWidget(new TQLabel(i18n("Sub-beat velocity"), frame), 3, 0); + tqlayout->addWidget(new TQLabel(i18n("Sub-beat velocity"), frame), 3, 0); m_metronomeSubBeatVely = new TQSpinBox(frame); m_metronomeSubBeatVely->setMinValue(0); m_metronomeSubBeatVely->setMaxValue(127); connect(m_metronomeSubBeatVely, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotSetModified())); - layout->addWidget(m_metronomeSubBeatVely, 3, 1); + tqlayout->addWidget(m_metronomeSubBeatVely, 3, 1); vbox = new TQVBox(hbox); @@ -162,8 +162,8 @@ ManageMetronomeDialog::ManageMetronomeDialog(TQWidget *parent, m_metronomePitchSelector->insertItem(i18n("for Sub-beat")); connect(m_metronomePitchSelector, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotPitchSelectorChanged(int))); - TQGroupBox *enableBox = new QGroupBox - (1, Horizontal, i18n("Metronome Activated"), vbox); + TQGroupBox *enableBox = new TQGroupBox + (1, Qt::Horizontal, i18n("Metronome Activated"), vbox); m_playEnabled = new TQCheckBox(i18n("Playing"), enableBox); m_recordEnabled = new TQCheckBox(i18n("Recording"), enableBox); connect(m_playEnabled, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSetModified())); @@ -261,7 +261,7 @@ ManageMetronomeDialog::populate(int deviceIndex) } } - // if (used) iname = i18n("%1 [used]").arg(iname); + // if (used) iname = i18n("%1 [used]").tqarg(iname); m_metronomeInstrument->insertItem(iname); |