summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/TimeWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/TimeWidget.cpp')
-rw-r--r--src/gui/widgets/TimeWidget.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/src/gui/widgets/TimeWidget.cpp b/src/gui/widgets/TimeWidget.cpp
index a949ed1..0edc963 100644
--- a/src/gui/widgets/TimeWidget.cpp
+++ b/src/gui/widgets/TimeWidget.cpp
@@ -93,14 +93,14 @@ TimeWidget::init(bool editable)
editable = true;
TQFrame *frame = new TQFrame(this);
- TQGridLayout *tqlayout = new TQGridLayout(frame, 7, 3, 5, 5);
+ TQGridLayout *layout = new TQGridLayout(frame, 7, 3, 5, 5);
TQLabel *label = 0;
if (m_isDuration) {
label = new TQLabel(i18n("Note:"), frame);
label->setAlignment(TQt::AlignRight | TQt::AlignVCenter);
- tqlayout->addWidget(label, 0, 0);
+ layout->addWidget(label, 0, 0);
if (editable) {
m_note = new TQComboBox(frame);
@@ -133,7 +133,7 @@ TimeWidget::init(bool editable)
}
connect(m_note, TQT_SIGNAL(activated(int)),
this, TQT_SLOT(slotNoteChanged(int)));
- tqlayout->addMultiCellWidget(m_note, 0, 0, 1, 3);
+ layout->addMultiCellWidget(m_note, 0, 0, 1, 3);
} else {
@@ -145,12 +145,12 @@ TimeWidget::init(bool editable)
label = i18n("<inexact>");
TQLineEdit *le = new TQLineEdit(label, frame);
le->setReadOnly(true);
- tqlayout->addMultiCellWidget(le, 0, 0, 1, 3);
+ layout->addMultiCellWidget(le, 0, 0, 1, 3);
}
label = new TQLabel(i18n("Units:"), frame);
label->setAlignment(TQt::AlignRight | TQt::AlignVCenter);
- tqlayout->addWidget(label, 0, 4);
+ layout->addWidget(label, 0, 4);
if (editable) {
m_timeT = new TQSpinBox(frame);
@@ -158,12 +158,12 @@ TimeWidget::init(bool editable)
(Note(Note::Shortest).getDuration());
connect(m_timeT, TQT_SIGNAL(valueChanged(int)),
this, TQT_SLOT(slotTimeTChanged(int)));
- tqlayout->addWidget(m_timeT, 0, 5);
+ layout->addWidget(m_timeT, 0, 5);
} else {
m_timeT = 0;
TQLineEdit *le = new TQLineEdit(TQString("%1").arg(m_time), frame);
le->setReadOnly(true);
- tqlayout->addWidget(le, 0, 5);
+ layout->addWidget(le, 0, 5);
}
} else {
@@ -172,7 +172,7 @@ TimeWidget::init(bool editable)
label = new TQLabel(i18n("Time:"), frame);
label->setAlignment(TQt::AlignRight | TQt::AlignVCenter);
- tqlayout->addWidget(label, 0, 0);
+ layout->addWidget(label, 0, 0);
if (editable) {
m_timeT = new TQSpinBox(frame);
@@ -180,19 +180,19 @@ TimeWidget::init(bool editable)
(Note(Note::Shortest).getDuration());
connect(m_timeT, TQT_SIGNAL(valueChanged(int)),
this, TQT_SLOT(slotTimeTChanged(int)));
- tqlayout->addWidget(m_timeT, 0, 1);
- tqlayout->addWidget(new TQLabel(i18n("units"), frame), 0, 2);
+ layout->addWidget(m_timeT, 0, 1);
+ layout->addWidget(new TQLabel(i18n("units"), frame), 0, 2);
} else {
m_timeT = 0;
TQLineEdit *le = new TQLineEdit(TQString("%1").arg(m_time), frame);
le->setReadOnly(true);
- tqlayout->addWidget(le, 0, 2);
+ layout->addWidget(le, 0, 2);
}
}
label = new TQLabel(m_isDuration ? i18n("Measures:") : i18n("Measure:"), frame);
label->setAlignment(TQt::AlignRight | TQt::AlignVCenter);
- tqlayout->addWidget(label, 1, 0);
+ layout->addWidget(label, 1, 0);
if (editable) {
m_barLabel = 0;
@@ -201,17 +201,17 @@ TimeWidget::init(bool editable)
m_bar->setMinValue(0);
connect(m_bar, TQT_SIGNAL(valueChanged(int)),
this, TQT_SLOT(slotBarBeatOrFractionChanged(int)));
- tqlayout->addWidget(m_bar, 1, 1);
+ layout->addWidget(m_bar, 1, 1);
} else {
m_bar = 0;
m_barLabel = new TQLineEdit(frame);
m_barLabel->setReadOnly(true);
- tqlayout->addWidget(m_barLabel, 1, 1);
+ layout->addWidget(m_barLabel, 1, 1);
}
label = new TQLabel(m_isDuration ? i18n("beats:") : i18n("beat:"), frame);
label->setAlignment(TQt::AlignRight | TQt::AlignVCenter);
- tqlayout->addWidget(label, 1, 2);
+ layout->addWidget(label, 1, 2);
if (editable) {
m_beatLabel = 0;
@@ -219,12 +219,12 @@ TimeWidget::init(bool editable)
m_beat->setMinValue(1);
connect(m_beat, TQT_SIGNAL(valueChanged(int)),
this, TQT_SLOT(slotBarBeatOrFractionChanged(int)));
- tqlayout->addWidget(m_beat, 1, 3);
+ layout->addWidget(m_beat, 1, 3);
} else {
m_beat = 0;
m_beatLabel = new TQLineEdit(frame);
m_beatLabel->setReadOnly(true);
- tqlayout->addWidget(m_beatLabel, 1, 3);
+ layout->addWidget(m_beatLabel, 1, 3);
}
label = new TQLabel(i18n("%1:").arg(NotationStrings::getShortNoteName
@@ -232,7 +232,7 @@ TimeWidget::init(bool editable)
(Note::Shortest), true)),
frame);
label->setAlignment(TQt::AlignRight | TQt::AlignVCenter);
- tqlayout->addWidget(label, 1, 4);
+ layout->addWidget(label, 1, 4);
if (editable) {
m_fractionLabel = 0;
@@ -240,20 +240,20 @@ TimeWidget::init(bool editable)
m_fraction->setMinValue(1);
connect(m_fraction, TQT_SIGNAL(valueChanged(int)),
this, TQT_SLOT(slotBarBeatOrFractionChanged(int)));
- tqlayout->addWidget(m_fraction, 1, 5);
+ layout->addWidget(m_fraction, 1, 5);
} else {
m_fraction = 0;
m_fractionLabel = new TQLineEdit(frame);
m_fractionLabel->setReadOnly(true);
- tqlayout->addWidget(m_fractionLabel, 1, 5);
+ layout->addWidget(m_fractionLabel, 1, 5);
}
m_timeSig = new TQLabel(frame);
- tqlayout->addWidget(m_timeSig, 1, 6);
+ layout->addWidget(m_timeSig, 1, 6);
label = new TQLabel(i18n("Seconds:"), frame);
label->setAlignment(TQt::AlignRight | TQt::AlignVCenter);
- tqlayout->addWidget(label, 2, 0);
+ layout->addWidget(label, 2, 0);
if (editable) {
m_secLabel = 0;
@@ -262,17 +262,17 @@ TimeWidget::init(bool editable)
m_sec->setMinValue(0);
connect(m_sec, TQT_SIGNAL(valueChanged(int)),
this, TQT_SLOT(slotSecOrMSecChanged(int)));
- tqlayout->addWidget(m_sec, 2, 1);
+ layout->addWidget(m_sec, 2, 1);
} else {
m_sec = 0;
m_secLabel = new TQLineEdit(frame);
m_secLabel->setReadOnly(true);
- tqlayout->addWidget(m_secLabel, 2, 1);
+ layout->addWidget(m_secLabel, 2, 1);
}
label = new TQLabel(i18n("msec:"), frame);
label->setAlignment(TQt::AlignRight | TQt::AlignVCenter);
- tqlayout->addWidget(label, 2, 2);
+ layout->addWidget(label, 2, 2);
if (editable) {
m_msecLabel = 0;
@@ -281,17 +281,17 @@ TimeWidget::init(bool editable)
m_msec->setLineStep(10);
connect(m_msec, TQT_SIGNAL(valueChanged(int)),
this, TQT_SLOT(slotSecOrMSecChanged(int)));
- tqlayout->addWidget(m_msec, 2, 3);
+ layout->addWidget(m_msec, 2, 3);
} else {
m_msec = 0;
m_msecLabel = new TQLineEdit(frame);
m_msecLabel->setReadOnly(true);
- tqlayout->addWidget(m_msecLabel, 2, 3);
+ layout->addWidget(m_msecLabel, 2, 3);
}
if (m_isDuration) {
m_tempo = new TQLabel(frame);
- tqlayout->addWidget(m_tempo, 2, 6);
+ layout->addWidget(m_tempo, 2, 6);
} else {
m_tempo = 0;
}