summaryrefslogtreecommitdiffstats
path: root/src/gui/configuration/DocumentMetaConfigurationPage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/configuration/DocumentMetaConfigurationPage.cpp')
-rw-r--r--src/gui/configuration/DocumentMetaConfigurationPage.cpp72
1 files changed, 36 insertions, 36 deletions
diff --git a/src/gui/configuration/DocumentMetaConfigurationPage.cpp b/src/gui/configuration/DocumentMetaConfigurationPage.cpp
index b6479cc..35e614d 100644
--- a/src/gui/configuration/DocumentMetaConfigurationPage.cpp
+++ b/src/gui/configuration/DocumentMetaConfigurationPage.cpp
@@ -65,18 +65,18 @@ static TQString durationToString(Rosegarden::Composition &comp,
Rosegarden::RealTime rt)
{
return i18n("%1 minutes %2.%3%4 seconds (%5 units, %6 measures)") // TODO - PLURAL
- .arg(rt.sec / 60).arg(rt.sec % 60)
- .arg(rt.msec() / 100).arg((rt.msec() / 10) % 10)
- .arg(duration).arg(comp.getBarNumber(absTime + duration) -
+ .tqarg(rt.sec / 60).tqarg(rt.sec % 60)
+ .tqarg(rt.msec() / 100).tqarg((rt.msec() / 10) % 10)
+ .tqarg(duration).tqarg(comp.getBarNumber(absTime + duration) -
comp.getBarNumber(absTime));
}
-class SegmentDataItem : public QTableItem
+class SegmentDataItem : public TQTableItem
{
public:
SegmentDataItem(TQTable *t, TQString s) :
TQTableItem(t, TQTableItem::Never, s) { }
- virtual int alignment() const { return Qt::AlignCenter; }
+ virtual int tqalignment() const { return TQt::AlignCenter; }
virtual TQString key() const {
@@ -96,7 +96,7 @@ public:
TQString s(text());
if (s[0].digitValue() >= 0) {
- return TQString("%1%2").arg(s.length()).arg(s);
+ return TQString("%1%2").tqarg(s.length()).tqarg(s);
} else {
return s;
}
@@ -104,9 +104,9 @@ public:
};
DocumentMetaConfigurationPage::DocumentMetaConfigurationPage(RosegardenGUIDoc *doc,
- TQWidget *parent,
+ TQWidget *tqparent,
const char *name) :
- TabbedConfigurationPage(doc, parent, name)
+ TabbedConfigurationPage(doc, tqparent, name)
{
m_headersPage = new HeadersConfigurationPage(this, doc);
addTab(m_headersPage, i18n("Headers"));
@@ -126,42 +126,42 @@ DocumentMetaConfigurationPage::DocumentMetaConfigurationPage(RosegardenGUIDoc *d
}
TQFrame *frame = new TQFrame(m_tabWidget);
- TQGridLayout *layout = new TQGridLayout(frame,
+ TQGridLayout *tqlayout = new TQGridLayout(frame,
6, 2,
10, 5);
- layout->addWidget(new TQLabel(i18n("Filename:"), frame), 0, 0);
- layout->addWidget(new TQLabel(doc->getTitle(), frame), 0, 1);
+ tqlayout->addWidget(new TQLabel(i18n("Filename:"), frame), 0, 0);
+ tqlayout->addWidget(new TQLabel(doc->getTitle(), frame), 0, 1);
- layout->addWidget(new TQLabel(i18n("Formal duration (to end marker):"), frame), 1, 0);
+ tqlayout->addWidget(new TQLabel(i18n("Formal duration (to end marker):"), frame), 1, 0);
timeT d = comp.getEndMarker();
RealTime rtd = comp.getElapsedRealTime(d);
- layout->addWidget(new TQLabel(durationToString(comp, 0, d, rtd), frame), 1, 1);
+ tqlayout->addWidget(new TQLabel(durationToString(comp, 0, d, rtd), frame), 1, 1);
- layout->addWidget(new TQLabel(i18n("Playing duration:"), frame), 2, 0);
+ tqlayout->addWidget(new TQLabel(i18n("Playing duration:"), frame), 2, 0);
d = comp.getDuration();
rtd = comp.getElapsedRealTime(d);
- layout->addWidget(new TQLabel(durationToString(comp, 0, d, rtd), frame), 2, 1);
+ tqlayout->addWidget(new TQLabel(durationToString(comp, 0, d, rtd), frame), 2, 1);
- layout->addWidget(new TQLabel(i18n("Tracks:"), frame), 3, 0);
- layout->addWidget(new TQLabel(i18n("%1 used, %2 total")
- .arg(usedTracks.size())
- .arg(comp.getNbTracks()),
+ tqlayout->addWidget(new TQLabel(i18n("Tracks:"), frame), 3, 0);
+ tqlayout->addWidget(new TQLabel(i18n("%1 used, %2 total")
+ .tqarg(usedTracks.size())
+ .tqarg(comp.getNbTracks()),
frame), 3, 1);
- layout->addWidget(new TQLabel(i18n("Segments:"), frame), 4, 0);
- layout->addWidget(new TQLabel(i18n("%1 MIDI, %2 audio, %3 total")
- .arg(internalSegments)
- .arg(audioSegments)
- .arg(internalSegments + audioSegments),
+ tqlayout->addWidget(new TQLabel(i18n("Segments:"), frame), 4, 0);
+ tqlayout->addWidget(new TQLabel(i18n("%1 MIDI, %2 audio, %3 total")
+ .tqarg(internalSegments)
+ .tqarg(audioSegments)
+ .tqarg(internalSegments + audioSegments),
frame), 4, 1);
- layout->setRowStretch(5, 2);
+ tqlayout->setRowStretch(5, 2);
addTab(frame, i18n("Statistics"));
frame = new TQFrame(m_tabWidget);
- layout = new TQGridLayout(frame, 1, 1, 10, 5);
+ tqlayout = new TQGridLayout(frame, 1, 1, 10, 5);
TQTable *table = new TQTable(1, 11, frame, "Segment Table");
table->setSelectionMode(TQTable::NoSelection);
@@ -205,7 +205,7 @@ DocumentMetaConfigurationPage::DocumentMetaConfigurationPage(RosegardenGUIDoc *d
table->setItem(i, 1, new SegmentDataItem
(table,
- TQString("%1").arg(s->getTrack() + 1)));
+ TQString("%1").tqarg(s->getTrack() + 1)));
TQPixmap colourPixmap(16, 16);
Colour colour =
@@ -219,11 +219,11 @@ DocumentMetaConfigurationPage::DocumentMetaConfigurationPage(RosegardenGUIDoc *d
table->setItem(i, 3, new SegmentDataItem
(table,
- TQString("%1").arg(s->getStartTime())));
+ TQString("%1").tqarg(s->getStartTime())));
table->setItem(i, 4, new SegmentDataItem
(table,
- TQString("%1").arg(s->getEndMarkerTime() -
+ TQString("%1").tqarg(s->getEndMarkerTime() -
s->getStartTime())));
std::set<long> notesOn;
@@ -254,11 +254,11 @@ DocumentMetaConfigurationPage::DocumentMetaConfigurationPage(RosegardenGUIDoc *d
table->setItem(i, 5, new SegmentDataItem
(table,
- TQString("%1").arg(events)));
+ TQString("%1").tqarg(events)));
table->setItem(i, 6, new SegmentDataItem
(table,
- TQString("%1").arg(maxPoly)));
+ TQString("%1").tqarg(maxPoly)));
table->setItem(i, 7, new SegmentDataItem
(table,
@@ -280,16 +280,16 @@ DocumentMetaConfigurationPage::DocumentMetaConfigurationPage(RosegardenGUIDoc *d
table->setItem(i, 9, new SegmentDataItem
(table,
- TQString("%1").arg(s->getTranspose())));
+ TQString("%1").tqarg(s->getTranspose())));
if (s->getDelay() != 0) {
if (s->getRealTimeDelay() != RealTime::zeroTime) {
table->setItem(i, 10, new SegmentDataItem
(table,
TQString("%1 + %2 ms")
- .arg(NotationStrings::makeNoteMenuLabel
+ .tqarg(NotationStrings::makeNoteMenuLabel
(s->getDelay(), true, discard, false))
- .arg(s->getRealTimeDelay().sec * 1000 +
+ .tqarg(s->getRealTimeDelay().sec * 1000 +
s->getRealTimeDelay().msec())));
} else {
table->setItem(i, 10, new SegmentDataItem
@@ -301,7 +301,7 @@ DocumentMetaConfigurationPage::DocumentMetaConfigurationPage(RosegardenGUIDoc *d
table->setItem(i, 10, new SegmentDataItem
(table,
TQString("%2 ms")
- .arg(s->getRealTimeDelay().sec * 1000 +
+ .tqarg(s->getRealTimeDelay().sec * 1000 +
s->getRealTimeDelay().msec())));
} else {
table->setItem(i, 10, new SegmentDataItem
@@ -312,7 +312,7 @@ DocumentMetaConfigurationPage::DocumentMetaConfigurationPage(RosegardenGUIDoc *d
++i;
}
- layout->addWidget(table, 0, 0);
+ tqlayout->addWidget(table, 0, 0);
addTab(frame, i18n("Segment Summary"));