summaryrefslogtreecommitdiffstats
path: root/src/gui/configuration/LatencyConfigurationPage.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
commit11f31c37e5fa4889d9989f10272f44845449cb7b (patch)
tree4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/configuration/LatencyConfigurationPage.cpp
parent832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff)
downloadrosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.tar.gz
rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.zip
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/configuration/LatencyConfigurationPage.cpp')
-rw-r--r--src/gui/configuration/LatencyConfigurationPage.cpp62
1 files changed, 31 insertions, 31 deletions
diff --git a/src/gui/configuration/LatencyConfigurationPage.cpp b/src/gui/configuration/LatencyConfigurationPage.cpp
index ff89edb..4ac9390 100644
--- a/src/gui/configuration/LatencyConfigurationPage.cpp
+++ b/src/gui/configuration/LatencyConfigurationPage.cpp
@@ -24,20 +24,20 @@
#include "LatencyConfigurationPage.h"
-#include <qlayout.h>
+#include <tqlayout.h>
#include "document/ConfigGroups.h"
#include "ConfigurationPage.h"
#include "document/RosegardenGUIDoc.h"
#include "TabbedConfigurationPage.h"
#include <kconfig.h>
-#include <qframe.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qslider.h>
-#include <qstring.h>
-#include <qtabwidget.h>
-#include <qwidget.h>
+#include <tqframe.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
+#include <tqslider.h>
+#include <tqstring.h>
+#include <tqtabwidget.h>
+#include <tqwidget.h>
namespace Rosegarden
@@ -45,7 +45,7 @@ namespace Rosegarden
LatencyConfigurationPage::LatencyConfigurationPage(RosegardenGUIDoc *doc,
KConfig *cfg,
- QWidget *parent,
+ TQWidget *parent,
const char *name)
: TabbedConfigurationPage(doc, cfg, parent, name)
{
@@ -55,44 +55,44 @@ LatencyConfigurationPage::LatencyConfigurationPage(RosegardenGUIDoc *doc,
#ifdef NOT_DEFINED
#ifdef HAVE_LIBJACK
- frame = new QFrame(m_tabWidget, i18n("JACK latency"));
- layout = new QGridLayout(frame, 6, 5, 10, 10);
+ frame = new TQFrame(m_tabWidget, i18n("JACK latency"));
+ layout = new TQGridLayout(frame, 6, 5, 10, 10);
- layout->addMultiCellWidget(new QLabel(i18n("Use the \"Fetch JACK latencies\" button to discover the latency values set at\nthe sequencer. It's recommended that you use the returned values but it's also\npossible to override them manually using the sliders. Note that if you change\nyour JACK server parameters you should always fetch the latency values again.\nThe latency values will be stored by Rosegarden for use next time."), frame),
+ layout->addMultiCellWidget(new TQLabel(i18n("Use the \"Fetch JACK latencies\" button to discover the latency values set at\nthe sequencer. It's recommended that you use the returned values but it's also\npossible to override them manually using the sliders. Note that if you change\nyour JACK server parameters you should always fetch the latency values again.\nThe latency values will be stored by Rosegarden for use next time."), frame),
0, 0,
0, 3);
- layout->addWidget(new QLabel(i18n("JACK playback latency (in ms)"), frame), 1, 0);
- layout->addWidget(new QLabel(i18n("JACK record latency (in ms)"), frame), 3, 0);
+ layout->addWidget(new TQLabel(i18n("JACK playback latency (in ms)"), frame), 1, 0);
+ layout->addWidget(new TQLabel(i18n("JACK record latency (in ms)"), frame), 3, 0);
- m_fetchLatencyValues = new QPushButton(i18n("Fetch JACK latencies"),
+ m_fetchLatencyValues = new TQPushButton(i18n("Fetch JACK latencies"),
frame);
layout->addWidget(m_fetchLatencyValues, 1, 3);
- connect(m_fetchLatencyValues, SIGNAL(released()),
- SLOT(slotFetchLatencyValues()));
+ connect(m_fetchLatencyValues, TQT_SIGNAL(released()),
+ TQT_SLOT(slotFetchLatencyValues()));
int jackPlaybackValue = (m_cfg->readLongNumEntry(
"jackplaybacklatencyusec", 0) / 1000) +
(m_cfg->readLongNumEntry(
"jackplaybacklatencysec", 0) * 1000);
- m_jackPlayback = new QSlider(Horizontal, frame);
- m_jackPlayback->setTickmarks(QSlider::Below);
+ m_jackPlayback = new TQSlider(Horizontal, frame);
+ m_jackPlayback->setTickmarks(TQSlider::Below);
layout->addMultiCellWidget(m_jackPlayback, 3, 3, 2, 3);
- QLabel *jackPlaybackLabel = new QLabel(QString("%1").arg(jackPlaybackValue),
+ TQLabel *jackPlaybackLabel = new TQLabel(TQString("%1").arg(jackPlaybackValue),
frame);
layout->addWidget(jackPlaybackLabel, 2, 2, Qt::AlignHCenter);
- connect(m_jackPlayback, SIGNAL(valueChanged(int)),
- jackPlaybackLabel, SLOT(setNum(int)));
+ connect(m_jackPlayback, TQT_SIGNAL(valueChanged(int)),
+ jackPlaybackLabel, TQT_SLOT(setNum(int)));
m_jackPlayback->setMinValue(0);
- layout->addWidget(new QLabel("0", frame), 3, 1, Qt::AlignRight);
+ layout->addWidget(new TQLabel("0", frame), 3, 1, Qt::AlignRight);
m_jackPlayback->setMaxValue(500);
- layout->addWidget(new QLabel("500", frame), 3, 4, Qt::AlignLeft);
+ layout->addWidget(new TQLabel("500", frame), 3, 4, Qt::AlignLeft);
m_jackPlayback->setValue(jackPlaybackValue);
@@ -101,22 +101,22 @@ LatencyConfigurationPage::LatencyConfigurationPage(RosegardenGUIDoc *doc,
(m_cfg->readLongNumEntry(
"jackrecordlatencysec", 0) * 1000);
- m_jackRecord = new QSlider(Horizontal, frame);
- m_jackRecord->setTickmarks(QSlider::Below);
+ m_jackRecord = new TQSlider(Horizontal, frame);
+ m_jackRecord->setTickmarks(TQSlider::Below);
layout->addMultiCellWidget(m_jackRecord, 5, 5, 2, 3);
- QLabel *jackRecordLabel = new QLabel(QString("%1").arg(jackRecordValue),
+ TQLabel *jackRecordLabel = new TQLabel(TQString("%1").arg(jackRecordValue),
frame);
layout->addWidget(jackRecordLabel, 4, 2, Qt::AlignHCenter);
- connect(m_jackRecord, SIGNAL(valueChanged(int)),
- jackRecordLabel, SLOT(setNum(int)));
+ connect(m_jackRecord, TQT_SIGNAL(valueChanged(int)),
+ jackRecordLabel, TQT_SLOT(setNum(int)));
m_jackRecord->setMinValue(0);
- layout->addWidget(new QLabel("0", frame), 5, 1, Qt::AlignRight);
+ layout->addWidget(new TQLabel("0", frame), 5, 1, Qt::AlignRight);
m_jackRecord->setMaxValue(500);
m_jackRecord->setValue(jackRecordValue);
- layout->addWidget(new QLabel("500", frame), 5, 4, Qt::AlignLeft);
+ layout->addWidget(new TQLabel("500", frame), 5, 4, Qt::AlignLeft);
addTab(frame, i18n("JACK Latency"));
#endif // HAVE_LIBJACK