summaryrefslogtreecommitdiffstats
path: root/kradio3/plugins/timeshifter/timeshifter-configuration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kradio3/plugins/timeshifter/timeshifter-configuration.cpp')
-rw-r--r--kradio3/plugins/timeshifter/timeshifter-configuration.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/kradio3/plugins/timeshifter/timeshifter-configuration.cpp b/kradio3/plugins/timeshifter/timeshifter-configuration.cpp
index 828cc33..2f68d68 100644
--- a/kradio3/plugins/timeshifter/timeshifter-configuration.cpp
+++ b/kradio3/plugins/timeshifter/timeshifter-configuration.cpp
@@ -20,12 +20,12 @@
#include <unistd.h>
#include <linux/soundcard.h>
-#include <qspinbox.h>
-#include <qlineedit.h>
-#include <qcombobox.h>
-#include <qlabel.h>
-#include <qfile.h>
-#include <qpushbutton.h>
+#include <tqspinbox.h>
+#include <tqlineedit.h>
+#include <tqcombobox.h>
+#include <tqlabel.h>
+#include <tqfile.h>
+#include <tqpushbutton.h>
#include <kfiledialog.h>
#include <knuminput.h>
@@ -36,8 +36,8 @@
#include "timeshifter-configuration.h"
#include "timeshifter.h"
-TimeShifterConfiguration::TimeShifterConfiguration (QWidget *parent, TimeShifter *shifter)
- : TimeShifterConfigurationUI(parent),
+TimeShifterConfiguration::TimeShifterConfiguration (TQWidget *tqparent, TimeShifter *shifter)
+ : TimeShifterConfigurationUI(tqparent),
m_ignoreGUIChanges(false),
m_myControlChange(0),
m_PlaybackMixerHelper(comboPlaybackMixerDevice, StringListHelper::SORT_BY_DESCR),
@@ -45,15 +45,15 @@ TimeShifterConfiguration::TimeShifterConfiguration (QWidget *parent, TimeShifter
m_Shifter(shifter),
m_dirty(true)
{
- QObject::connect(buttonSelectTempFile, SIGNAL(clicked()),
- this, SLOT(selectTempFile()));
- QObject::connect(comboPlaybackMixerDevice, SIGNAL(activated(int)),
- this, SLOT(slotComboPlaybackMixerSelected(int)));
-
- connect(editTempFile, SIGNAL(textChanged(const QString&)), this, SLOT(slotSetDirty()));
- connect(editTempFileSize, SIGNAL(valueChanged(int)), this, SLOT(slotSetDirty()));
- connect(comboPlaybackMixerChannel, SIGNAL(activated( int )), this, SLOT(slotSetDirty()));
- connect(comboPlaybackMixerDevice, SIGNAL(activated( int )), this, SLOT(slotSetDirty()));
+ TQObject::connect(buttonSelectTempFile, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(selectTempFile()));
+ TQObject::connect(comboPlaybackMixerDevice, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotComboPlaybackMixerSelected(int)));
+
+ connect(editTempFile, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotSetDirty()));
+ connect(editTempFileSize, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotSetDirty()));
+ connect(comboPlaybackMixerChannel, TQT_SIGNAL(activated( int )), this, TQT_SLOT(slotSetDirty()));
+ connect(comboPlaybackMixerDevice, TQT_SIGNAL(activated( int )), this, TQT_SLOT(slotSetDirty()));
slotCancel();
}
@@ -87,11 +87,11 @@ void TimeShifterConfiguration::noticeConnectedI (ISoundStreamServer *s, bool poi
void TimeShifterConfiguration::noticeConnectedSoundClient(ISoundStreamClient::thisInterface *i, bool pointer_valid)
{
if (i && pointer_valid && i->supportsPlayback() && m_Shifter) {
- const QString &org_mid = m_Shifter->getPlaybackMixer();
- bool org_present = m_PlaybackMixerHelper.contains(org_mid);
- const QString &mid = org_present ? m_PlaybackMixerHelper.getCurrentItem() : org_mid;
- const QString &org_ch = m_Shifter->getPlaybackMixerChannel();
- const QString &ch = org_present ? m_PlaybackChannelHelper.getCurrentText() : org_ch;
+ const TQString &org_mid = m_Shifter->getPlaybackMixer();
+ bool org_present = m_PlaybackMixerHelper.tqcontains(org_mid);
+ const TQString &mid = org_present ? m_PlaybackMixerHelper.getCurrentItem() : org_mid;
+ const TQString &org_ch = m_Shifter->getPlaybackMixerChannel();
+ const TQString &ch = org_present ? m_PlaybackChannelHelper.getCurrentText() : org_ch;
setPlaybackMixer(mid, ch);
}
}
@@ -106,9 +106,9 @@ void TimeShifterConfiguration::noticeDisconnectedSoundClient(ISoundStreamClient:
-bool TimeShifterConfiguration::setPlaybackMixer(const QString &_mixer_id, const QString &Channel)
+bool TimeShifterConfiguration::setPlaybackMixer(const TQString &_mixer_id, const TQString &Channel)
{
- QString mixer_id = _mixer_id;
+ TQString mixer_id = _mixer_id;
bool old = m_ignoreGUIChanges;
m_ignoreGUIChanges = true;
@@ -119,7 +119,7 @@ bool TimeShifterConfiguration::setPlaybackMixer(const QString &_mixer_id, const
ISoundStreamClient *mixer = getSoundStreamClientWithID(mixer_id);
if (mixer) {
m_PlaybackChannelHelper.setData(mixer->getPlaybackChannels());
- m_PlaybackChannelHelper.setCurrentText(m_PlaybackChannelHelper.contains(Channel) ? Channel : m_Shifter->getPlaybackMixerChannel());
+ m_PlaybackChannelHelper.setCurrentText(m_PlaybackChannelHelper.tqcontains(Channel) ? Channel : m_Shifter->getPlaybackMixerChannel());
}
labelPlaybackMixerChannel->setEnabled(mixer != NULL);
comboPlaybackMixerChannel->setEnabled(mixer != NULL);
@@ -142,7 +142,7 @@ void TimeShifterConfiguration::selectTempFile()
fd.setMode(KFile::File);
fd.setCaption (i18n("Select TimeShifter Temporary File"));
- if (fd.exec() == QDialog::Accepted) {
+ if (fd.exec() == TQDialog::Accepted) {
editTempFile->setText(fd.selectedFile());
}
}
@@ -158,7 +158,7 @@ void TimeShifterConfiguration::slotComboPlaybackMixerSelected(int /*idx*/)
void TimeShifterConfiguration::slotOK()
{
if (m_Shifter && m_dirty) {
- m_Shifter->setTempFile(editTempFile->text(), editTempFileSize->value() * (Q_UINT64)(1024 * 1024));
+ m_Shifter->setTempFile(editTempFile->text(), editTempFileSize->value() * (TQ_UINT64)(1024 * 1024));
m_Shifter->setPlaybackMixer(m_PlaybackMixerHelper.getCurrentItem(),
m_PlaybackChannelHelper.getCurrentText());
m_dirty = false;
@@ -178,7 +178,7 @@ void TimeShifterConfiguration::slotCancel()
}
-bool TimeShifterConfiguration::noticePlaybackChannelsChanged(const QString & client_id, const QStringList &/*channels*/)
+bool TimeShifterConfiguration::noticePlaybackChannelsChanged(const TQString & client_id, const TQStringList &/*channels*/)
{
if (m_PlaybackMixerHelper.getCurrentItem() == client_id) {
setPlaybackMixer(client_id, m_PlaybackChannelHelper.getCurrentText());