From 70b9eea2ba01c3691497f49e4c45cb070c16193c Mon Sep 17 00:00:00 2001
From: tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>
Date: Fri, 1 Jul 2011 03:43:07 +0000
Subject: TQt4 port kradio This enables compilation under both Qt3 and Qt4

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kradio@1238952 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
---
 .../plugins/oss-sound/oss-sound-configuration.cpp    | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

(limited to 'kradio3/plugins/oss-sound/oss-sound-configuration.cpp')

diff --git a/kradio3/plugins/oss-sound/oss-sound-configuration.cpp b/kradio3/plugins/oss-sound/oss-sound-configuration.cpp
index 5665114..1aca790 100644
--- a/kradio3/plugins/oss-sound/oss-sound-configuration.cpp
+++ b/kradio3/plugins/oss-sound/oss-sound-configuration.cpp
@@ -15,7 +15,7 @@
  *                                                                         *
  ***************************************************************************/
 
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
 
 #include <kurlrequester.h>
 #include <knuminput.h>
@@ -23,17 +23,17 @@
 #include "oss-sound-configuration.h"
 #include "oss-sound.h"
 
-OSSSoundConfiguration::OSSSoundConfiguration (QWidget *parent, OSSSoundDevice *dev)
- : OSSSoundConfigurationUI(parent),
+OSSSoundConfiguration::OSSSoundConfiguration (TQWidget *tqparent, OSSSoundDevice *dev)
+ : OSSSoundConfigurationUI(tqparent),
    m_SoundDevice (dev),
    m_dirty(true),
    m_ignore_gui_updates(false)
 {
-    connect(editDSPDevice,      SIGNAL(textChanged(const QString &)), this, SLOT(slotSetDirty()));
-    connect(editMixerDevice,    SIGNAL(textChanged(const QString &)), this, SLOT(slotSetDirty()));
-    connect(editBufferSize,     SIGNAL(valueChanged(int)),            this, SLOT(slotSetDirty()));
-    connect(chkDisablePlayback, SIGNAL(toggled(bool)),                this, SLOT(slotSetDirty()));
-    connect(chkDisableCapture,  SIGNAL(toggled(bool)),                this, SLOT(slotSetDirty()));
+    connect(editDSPDevice,      TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(slotSetDirty()));
+    connect(editMixerDevice,    TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(slotSetDirty()));
+    connect(editBufferSize,     TQT_SIGNAL(valueChanged(int)),            this, TQT_SLOT(slotSetDirty()));
+    connect(chkDisablePlayback, TQT_SIGNAL(toggled(bool)),                this, TQT_SLOT(slotSetDirty()));
+    connect(chkDisableCapture,  TQT_SIGNAL(toggled(bool)),                this, TQT_SLOT(slotSetDirty()));
     slotCancel();
 }
 
@@ -60,8 +60,8 @@ void OSSSoundConfiguration::slotCancel()
 {
     if (m_dirty) {
         m_ignore_gui_updates = true;
-        editDSPDevice     ->setURL    (m_SoundDevice ?  m_SoundDevice->getDSPDeviceName()   : QString::null);
-        editMixerDevice   ->setURL    (m_SoundDevice ?  m_SoundDevice->getMixerDeviceName() : QString::null);
+        editDSPDevice     ->setURL    (m_SoundDevice ?  m_SoundDevice->getDSPDeviceName()   : TQString());
+        editMixerDevice   ->setURL    (m_SoundDevice ?  m_SoundDevice->getMixerDeviceName() : TQString());
         editBufferSize    ->setValue  (m_SoundDevice ?  m_SoundDevice->getBufferSize()/1024 : 4);
         chkDisablePlayback->setChecked(m_SoundDevice ? !m_SoundDevice->isPlaybackEnabled()  : false);
         chkDisableCapture ->setChecked(m_SoundDevice ? !m_SoundDevice->isCaptureEnabled()   : false);
-- 
cgit v1.2.1