summaryrefslogtreecommitdiffstats
path: root/src/k3blsofwrapper.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 19:21:21 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 19:21:21 +0000
commitd8cc8bdfa7fa624a526d5aa1626974e1444cb799 (patch)
treef295f1c545b319963d5357af79fe08991d8141d9 /src/k3blsofwrapper.cpp
parent2a39a080579fb52a2599c02b2939795385b89093 (diff)
downloadk3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.tar.gz
k3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.zip
TQt4 port k3b
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1233803 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/k3blsofwrapper.cpp')
-rw-r--r--src/k3blsofwrapper.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/k3blsofwrapper.cpp b/src/k3blsofwrapper.cpp
index 56d5d5b..0362de6 100644
--- a/src/k3blsofwrapper.cpp
+++ b/src/k3blsofwrapper.cpp
@@ -19,13 +19,13 @@
#include <k3bprocess.h>
#include <k3bglobals.h>
-#include <qfile.h>
-#include <qfileinfo.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
#include <sys/types.h>
#include <unistd.h>
-static K3bLsofWrapper::Process createProcess( const QString& name, int pid )
+static K3bLsofWrapper::Process createProcess( const TQString& name, int pid )
{
K3bLsofWrapper::Process p;
p.name = name;
@@ -37,8 +37,8 @@ static K3bLsofWrapper::Process createProcess( const QString& name, int pid )
class K3bLsofWrapper::Private
{
public:
- QValueList<Process> apps;
- QString lsofBin;
+ TQValueList<Process> apps;
+ TQString lsofBin;
};
@@ -77,10 +77,10 @@ bool K3bLsofWrapper::checkDevice( K3bDevice::Device* dev )
//
// now process its output
- QStringList l = QStringList::split( "\n", out.output() );
- for( QStringList::iterator it = l.begin(); it != l.end(); ++it ) {
+ TQStringList l = TQStringList::split( "\n", out.output() );
+ for( TQStringList::iterator it = l.begin(); it != l.end(); ++it ) {
int pid = (*it).mid(1).toInt();
- QString app = (*(++it)).mid(1);
+ TQString app = (*(++it)).mid(1);
kdDebug() << "(K3bLsofWrapper) matched: app: " << app << " pid: " << pid << endl;
@@ -93,7 +93,7 @@ bool K3bLsofWrapper::checkDevice( K3bDevice::Device* dev )
}
-const QValueList<K3bLsofWrapper::Process>& K3bLsofWrapper::usingApplications() const
+const TQValueList<K3bLsofWrapper::Process>& K3bLsofWrapper::usingApplications() const
{
return d->apps;
}