diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-02 22:38:52 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-02 22:38:52 +0000 |
commit | 458efa7b0c935cbaafa2791021a5f8f7241aa876 (patch) | |
tree | 624583f2873febe23770bee3fa94b5c24bd59f4f /src/gui/dialogs/TimeSignatureDialog.cpp | |
parent | 747037b72944ae2c02962b7c5c96e0a7f8852e38 (diff) | |
download | rosegarden-458efa7b0c935cbaafa2791021a5f8f7241aa876.tar.gz rosegarden-458efa7b0c935cbaafa2791021a5f8f7241aa876.zip |
Initial TQt4 port of Rosegarden
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1230242 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/dialogs/TimeSignatureDialog.cpp')
-rw-r--r-- | src/gui/dialogs/TimeSignatureDialog.cpp | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/src/gui/dialogs/TimeSignatureDialog.cpp b/src/gui/dialogs/TimeSignatureDialog.cpp index 1e0dca8..99d4830 100644 --- a/src/gui/dialogs/TimeSignatureDialog.cpp +++ b/src/gui/dialogs/TimeSignatureDialog.cpp @@ -50,13 +50,13 @@ namespace Rosegarden { -TimeSignatureDialog::TimeSignatureDialog(TQWidget *parent, +TimeSignatureDialog::TimeSignatureDialog(TQWidget *tqparent, Composition *composition, timeT insertionTime, TimeSignature sig, bool timeEditable, TQString explanatoryText) : - KDialogBase(parent, 0, true, i18n("Time Signature"), Ok | Cancel | Help), + KDialogBase(tqparent, 0, true, i18n("Time Signature"), Ok | Cancel | Help), m_composition(composition), m_timeSignature(sig), m_time(insertionTime), @@ -78,8 +78,8 @@ TimeSignatureDialog::TimeSignatureDialog(TQWidget *parent, } TQVBox *vbox = makeVBoxMainWidget(); - TQGroupBox *groupBox = new QGroupBox - (1, Horizontal, i18n("Time signature"), vbox); + TQGroupBox *groupBox = new TQGroupBox + (1, Qt::Horizontal, i18n("Time signature"), vbox); TQHBox *numBox = new TQHBox(groupBox); TQHBox *denomBox = new TQHBox(groupBox); @@ -91,13 +91,13 @@ TimeSignatureDialog::TimeSignatureDialog(TQWidget *parent, BigArrowButton *numDown = new BigArrowButton(numBox, Qt::LeftArrow); BigArrowButton *denomDown = new BigArrowButton(denomBox, Qt::LeftArrow); - m_numLabel = new QLabel - (TQString("%1").arg(m_timeSignature.getNumerator()), numBox); - m_denomLabel = new QLabel - (TQString("%1").arg(m_timeSignature.getDenominator()), denomBox); + m_numLabel = new TQLabel + (TQString("%1").tqarg(m_timeSignature.getNumerator()), numBox); + m_denomLabel = new TQLabel + (TQString("%1").tqarg(m_timeSignature.getDenominator()), denomBox); - m_numLabel->setAlignment(AlignHCenter | AlignVCenter); - m_denomLabel->setAlignment(AlignHCenter | AlignVCenter); + m_numLabel->tqsetAlignment(AlignHCenter | AlignVCenter); + m_denomLabel->tqsetAlignment(AlignHCenter | AlignVCenter); m_numLabel->setFont(*timeSigFont); m_denomLabel->setFont(*timeSigFont); @@ -126,7 +126,7 @@ TimeSignatureDialog::TimeSignatureDialog(TQWidget *parent, m_timeEditor = 0; - groupBox = new TQButtonGroup(1, Horizontal, i18n("Scope"), vbox); + groupBox = new TQButtonGroup(1, Qt::Horizontal, i18n("Scope"), vbox); int barNo = composition->getBarNumber(m_time); bool atStartOfBar = (m_time == composition->getBarStart(barNo)); @@ -137,57 +137,57 @@ TimeSignatureDialog::TimeSignatureDialog(TQWidget *parent, if (barNo != 0 || !atStartOfBar) { if (atStartOfBar) { - scopeText = QString + scopeText = TQString (i18n("Insertion point is at start of measure %1.")) - .arg(barNo + 1); + .tqarg(barNo + 1); } else { - scopeText = QString + scopeText = TQString (i18n("Insertion point is in the middle of measure %1.")) - .arg(barNo + 1); + .tqarg(barNo + 1); } } else { - scopeText = QString + scopeText = TQString (i18n("Insertion point is at start of composition.")); } new TQLabel(scopeText, groupBox); - m_asGivenButton = new QRadioButton - (i18n("Start measure %1 here").arg(barNo + 2), groupBox); + m_asGivenButton = new TQRadioButton + (i18n("Start measure %1 here").tqarg(barNo + 2), groupBox); if (!atStartOfBar) { - m_startOfBarButton = new QRadioButton + m_startOfBarButton = new TQRadioButton (i18n("Change time from start of measure %1") - .arg(barNo + 1), groupBox); + .tqarg(barNo + 1), groupBox); m_startOfBarButton->setChecked(true); } else { m_asGivenButton->setChecked(true); } } else { new TQLabel(i18n("Time change will take effect at the start of measure %1.") - .arg(barNo + 1), groupBox); + .tqarg(barNo + 1), groupBox); } } - groupBox = new TQGroupBox(1, Horizontal, i18n("Options"), vbox); + groupBox = new TQGroupBox(1, Qt::Horizontal, i18n("Options"), vbox); KConfig *config = kapp->config(); config->setGroup(GeneralOptionsConfigGroup); - m_hideSignatureButton = new QCheckBox + m_hideSignatureButton = new TQCheckBox (i18n("Hide the time signature"), groupBox); m_hideSignatureButton->setChecked (config->readBoolEntry("timesigdialogmakehidden", false)); - m_hideBarsButton = new QCheckBox + m_hideBarsButton = new TQCheckBox (i18n("Hide the affected bar lines"), groupBox); m_hideBarsButton->setChecked (config->readBoolEntry("timesigdialogmakehiddenbars", false)); - m_commonTimeButton = new QCheckBox + m_commonTimeButton = new TQCheckBox (i18n("Show as common time"), groupBox); m_commonTimeButton->setChecked (config->readBoolEntry("timesigdialogshowcommon", true)); - m_normalizeRestsButton = new QCheckBox + m_normalizeRestsButton = new TQCheckBox (i18n("Correct the durations of following measures"), groupBox); m_normalizeRestsButton->setChecked (config->readBoolEntry("timesigdialognormalize", true)); @@ -231,7 +231,7 @@ TimeSignatureDialog::slotNumDown() int n = m_timeSignature.getNumerator(); if (--n >= 1) { m_timeSignature = TimeSignature(n, m_timeSignature.getDenominator()); - m_numLabel->setText(TQString("%1").arg(n)); + m_numLabel->setText(TQString("%1").tqarg(n)); } slotUpdateCommonTimeButton(); } @@ -242,7 +242,7 @@ TimeSignatureDialog::slotNumUp() int n = m_timeSignature.getNumerator(); if (++n <= 99) { m_timeSignature = TimeSignature(n, m_timeSignature.getDenominator()); - m_numLabel->setText(TQString("%1").arg(n)); + m_numLabel->setText(TQString("%1").tqarg(n)); } slotUpdateCommonTimeButton(); } @@ -253,7 +253,7 @@ TimeSignatureDialog::slotDenomDown() int n = m_timeSignature.getDenominator(); if ((n /= 2) >= 1) { m_timeSignature = TimeSignature(m_timeSignature.getNumerator(), n); - m_denomLabel->setText(TQString("%1").arg(n)); + m_denomLabel->setText(TQString("%1").tqarg(n)); } slotUpdateCommonTimeButton(); } @@ -264,7 +264,7 @@ TimeSignatureDialog::slotDenomUp() int n = m_timeSignature.getDenominator(); if ((n *= 2) <= 64) { m_timeSignature = TimeSignature(m_timeSignature.getNumerator(), n); - m_denomLabel->setText(TQString("%1").arg(n)); + m_denomLabel->setText(TQString("%1").tqarg(n)); } slotUpdateCommonTimeButton(); } |