summaryrefslogtreecommitdiffstats
path: root/kdeprint/lpr/lpqhelper.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeprint/lpr/lpqhelper.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/lpr/lpqhelper.cpp')
-rw-r--r--kdeprint/lpr/lpqhelper.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kdeprint/lpr/lpqhelper.cpp b/kdeprint/lpr/lpqhelper.cpp
index c9f26174b..2675c9d41 100644
--- a/kdeprint/lpr/lpqhelper.cpp
+++ b/kdeprint/lpr/lpqhelper.cpp
@@ -26,8 +26,8 @@
#include <kprocess.h>
#include <kdebug.h>
-LpqHelper::LpqHelper(QObject *parent, const char *name)
-: QObject(parent, name)
+LpqHelper::LpqHelper(TQObject *parent, const char *name)
+: TQObject(parent, name)
{
m_exepath = KStandardDirs::findExe("lpq");
}
@@ -36,7 +36,7 @@ LpqHelper::~LpqHelper()
{
}
-KMJob* LpqHelper::parseLineLpr(const QString& line)
+KMJob* LpqHelper::parseLineLpr(const TQString& line)
{
QString rank = line.left(7);
if (!rank[0].isDigit() && rank != "active")
@@ -54,7 +54,7 @@ KMJob* LpqHelper::parseLineLpr(const QString& line)
return job;
}
-KMJob* LpqHelper::parseLineLPRng(const QString& line)
+KMJob* LpqHelper::parseLineLPRng(const TQString& line)
{
QString rank = line.left(7).stripWhiteSpace();
if (!rank[0].isDigit() && rank != "active" && rank != "hold")
@@ -80,7 +80,7 @@ KMJob* LpqHelper::parseLineLPRng(const QString& line)
return job;
}
-void LpqHelper::listJobs(QPtrList<KMJob>& jobs, const QString& prname, int limit)
+void LpqHelper::listJobs(TQPtrList<KMJob>& jobs, const TQString& prname, int limit)
{
KPipeProcess proc;
if (!m_exepath.isEmpty() && proc.open(m_exepath + " -P " + KProcess::quote(prname)))
@@ -105,7 +105,7 @@ void LpqHelper::listJobs(QPtrList<KMJob>& jobs, const QString& prname, int limit
if (job)
{
job->setPrinter(prname);
- job->setUri("lpd://"+prname+"/"+QString::number(job->id()));
+ job->setUri("lpd://"+prname+"/"+TQString::number(job->id()));
jobs.append(job);
count++;
}