summaryrefslogtreecommitdiffstats
path: root/kradio3/plugins/recording/encoder_pcm.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 03:43:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 03:43:07 +0000
commit70b9eea2ba01c3691497f49e4c45cb070c16193c (patch)
tree9a6df61aa247a27275aad9c5245e419e89c2c640 /kradio3/plugins/recording/encoder_pcm.cpp
parent998c1384ace4ae4655997c181fa33242148cd0a4 (diff)
downloadtderadio-70b9eea2ba01c3691497f49e4c45cb070c16193c.tar.gz
tderadio-70b9eea2ba01c3691497f49e4c45cb070c16193c.zip
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
Diffstat (limited to 'kradio3/plugins/recording/encoder_pcm.cpp')
-rw-r--r--kradio3/plugins/recording/encoder_pcm.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kradio3/plugins/recording/encoder_pcm.cpp b/kradio3/plugins/recording/encoder_pcm.cpp
index 27c671b..a5e6488 100644
--- a/kradio3/plugins/recording/encoder_pcm.cpp
+++ b/kradio3/plugins/recording/encoder_pcm.cpp
@@ -20,10 +20,10 @@
#include <klocale.h>
-RecordingEncodingPCM::RecordingEncodingPCM(QObject *parent, SoundStreamID ssid,
+RecordingEncodingPCM::RecordingEncodingPCM(TQObject *tqparent, SoundStreamID ssid,
const RecordingConfig &cfg, const RadioStation *rs,
- const QString &filename)
- : RecordingEncoding(parent, ssid, cfg, rs, filename),
+ const TQString &filename)
+ : RecordingEncoding(tqparent, ssid, cfg, rs, filename),
m_output(NULL)
{
m_config.m_SoundFormat.m_Encoding = "raw";
@@ -50,12 +50,12 @@ void RecordingEncodingPCM::encode(const char *buffer, size_t buffer_size, char *
if (err != (int)buffer_size) {
m_error = true;
- m_errorString += i18n("Error %1 writing output. ").arg(QString().setNum(err));
+ m_errorString += i18n("Error %1 writing output. ").tqarg(TQString().setNum(err));
}
}
-bool RecordingEncodingPCM::openOutput(const QString &output)
+bool RecordingEncodingPCM::openOutput(const TQString &output)
{
SF_INFO sinfo;
m_config.getSoundFileInfo(sinfo, false);
@@ -63,7 +63,7 @@ bool RecordingEncodingPCM::openOutput(const QString &output)
if (!m_output) {
m_error = true;
- m_errorString += i18n("Cannot open output file %1. ").arg(output);
+ m_errorString += i18n("Cannot open output file %1. ").tqarg(output);
}
return !m_error;
}