summaryrefslogtreecommitdiffstats
path: root/src/gui/general/PresetHandlerDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/general/PresetHandlerDialog.cpp')
-rw-r--r--src/gui/general/PresetHandlerDialog.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/gui/general/PresetHandlerDialog.cpp b/src/gui/general/PresetHandlerDialog.cpp
index 383a2b6..a4144f0 100644
--- a/src/gui/general/PresetHandlerDialog.cpp
+++ b/src/gui/general/PresetHandlerDialog.cpp
@@ -52,8 +52,8 @@
namespace Rosegarden
{
-PresetHandlerDialog::PresetHandlerDialog(TQWidget *parent, bool fromNotation)
- : KDialogBase(parent, "presethandlerdialog", true, i18n("Load track parameters preset"), Ok | Cancel, Ok),
+PresetHandlerDialog::PresetHandlerDialog(TQWidget *tqparent, bool fromNotation)
+ : KDialogBase(tqparent, "presethandlerdialog", true, i18n("Load track parameters preset"), Ok | Cancel, Ok),
m_config(kapp->config()),
m_fromNotation(fromNotation)
{
@@ -81,7 +81,7 @@ PresetHandlerDialog::initDialog()
TQFrame *frame = new TQFrame(vBox);
- TQGridLayout *layout = new TQGridLayout(frame, 6, 5, 10, 5);
+ TQGridLayout *tqlayout = new TQGridLayout(frame, 6, 5, 10, 5);
TQLabel *title = new TQLabel(i18n("Select preset track parameters for:"), frame);
if (m_fromNotation) title->setText(i18n("Create appropriate notation for:"));
@@ -97,8 +97,8 @@ PresetHandlerDialog::initDialog()
m_playerCombo->insertItem(i18n("Amateur"));
m_playerCombo->insertItem(i18n("Professional"));
- TQGroupBox *scopeBox = new QButtonGroup
- (1, Horizontal, i18n("Scope"), frame);
+ TQGroupBox *scopeBox = new TQButtonGroup
+ (1, Qt::Horizontal, i18n("Scope"), frame);
if (m_fromNotation) {
TQRadioButton *onlySelectedSegments = new
TQRadioButton(i18n("Only selected segments"), scopeBox);
@@ -114,14 +114,14 @@ PresetHandlerDialog::initDialog()
onlyNewSegments->setChecked(true);
}
- layout->addMultiCellWidget(title, 0, 0, 0, 1, AlignLeft);
- layout->addWidget(catlabel, 1, 0, AlignRight);
- layout->addWidget(m_categoryCombo, 1, 1);
- layout->addWidget(inslabel, 2, 0, AlignRight);
- layout->addWidget(m_instrumentCombo, 2, 1);
- layout->addWidget(plylabel, 3, 0, AlignRight);
- layout->addWidget(m_playerCombo, 3, 1);
- layout->addMultiCellWidget(scopeBox, 4, 4, 0, 1, AlignLeft);
+ tqlayout->addMultiCellWidget(title, 0, 0, 0, 1, AlignLeft);
+ tqlayout->addWidget(catlabel, 1, 0, AlignRight);
+ tqlayout->addWidget(m_categoryCombo, 1, 1);
+ tqlayout->addWidget(inslabel, 2, 0, AlignRight);
+ tqlayout->addWidget(m_instrumentCombo, 2, 1);
+ tqlayout->addWidget(plylabel, 3, 0, AlignRight);
+ tqlayout->addWidget(m_playerCombo, 3, 1);
+ tqlayout->addMultiCellWidget(scopeBox, 4, 4, 0, 1, AlignLeft);
populateCategoryCombo();
// try to set to same category used previously
@@ -151,7 +151,7 @@ PresetHandlerDialog::initDialog()
TQT_SLOT(slotCategoryIndexChanged(int)));
}
-QString
+TQString
PresetHandlerDialog::getName()
{
return m_instrumentCombo->currentText();