summaryrefslogtreecommitdiffstats
path: root/kdeprint/foomatic
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/foomatic
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/foomatic')
-rw-r--r--kdeprint/foomatic/kfoomaticprinterimpl.cpp8
-rw-r--r--kdeprint/foomatic/kfoomaticprinterimpl.h6
-rw-r--r--kdeprint/foomatic/kmfoomaticmanager.cpp10
-rw-r--r--kdeprint/foomatic/kmfoomaticmanager.h6
4 files changed, 15 insertions, 15 deletions
diff --git a/kdeprint/foomatic/kfoomaticprinterimpl.cpp b/kdeprint/foomatic/kfoomaticprinterimpl.cpp
index e476b5581..b72fbd191 100644
--- a/kdeprint/foomatic/kfoomaticprinterimpl.cpp
+++ b/kdeprint/foomatic/kfoomaticprinterimpl.cpp
@@ -23,7 +23,7 @@
#include <kstandarddirs.h>
#include <klocale.h>
-KFoomaticPrinterImpl::KFoomaticPrinterImpl(QObject *parent, const char *name, const QStringList & /*args*/)
+KFoomaticPrinterImpl::KFoomaticPrinterImpl(TQObject *parent, const char *name, const TQStringList & /*args*/)
: KPrinterImpl(parent,name)
{
}
@@ -33,18 +33,18 @@ KFoomaticPrinterImpl::~KFoomaticPrinterImpl()
}
// look for executable
-QString KFoomaticPrinterImpl::executable()
+TQString KFoomaticPrinterImpl::executable()
{
QString exe = KStandardDirs::findExe("foomatic-printjob");
return exe;
}
-bool KFoomaticPrinterImpl::setupCommand(QString& cmd, KPrinter *printer)
+bool KFoomaticPrinterImpl::setupCommand(TQString& cmd, KPrinter *printer)
{
QString exe = executable();
if (!exe.isEmpty())
{
- cmd = exe + QString::fromLatin1(" -P %1 -# %2").arg(quote(printer->printerName())).arg(printer->numCopies());
+ cmd = exe + TQString::fromLatin1(" -P %1 -# %2").arg(quote(printer->printerName())).arg(printer->numCopies());
return true;
}
else
diff --git a/kdeprint/foomatic/kfoomaticprinterimpl.h b/kdeprint/foomatic/kfoomaticprinterimpl.h
index 7d0699b58..74dfdc8f4 100644
--- a/kdeprint/foomatic/kfoomaticprinterimpl.h
+++ b/kdeprint/foomatic/kfoomaticprinterimpl.h
@@ -25,13 +25,13 @@
class KFoomaticPrinterImpl : public KPrinterImpl
{
public:
- KFoomaticPrinterImpl(QObject *parent, const char *name, const QStringList & /*args*/);
+ KFoomaticPrinterImpl(TQObject *parent, const char *name, const TQStringList & /*args*/);
~KFoomaticPrinterImpl();
- bool setupCommand(QString&, KPrinter*);
+ bool setupCommand(TQString&, KPrinter*);
protected:
- QString executable();
+ TQString executable();
};
#endif
diff --git a/kdeprint/foomatic/kmfoomaticmanager.cpp b/kdeprint/foomatic/kmfoomaticmanager.cpp
index 33be966b9..57edf07c9 100644
--- a/kdeprint/foomatic/kmfoomaticmanager.cpp
+++ b/kdeprint/foomatic/kmfoomaticmanager.cpp
@@ -21,14 +21,14 @@
#include "kpipeprocess.h"
#include "driver.h"
-#include <qdom.h>
+#include <tqdom.h>
#include <klocale.h>
#include <kdebug.h>
#include <kprocess.h>
#include <unistd.h>
-KMFoomaticManager::KMFoomaticManager(QObject *parent, const char *name, const QStringList & /*args*/)
+KMFoomaticManager::KMFoomaticManager(TQObject *parent, const char *name, const TQStringList & /*args*/)
: KMManager(parent,name)
{
setHasManagement(getuid() == 0);
@@ -87,7 +87,7 @@ DrMain* KMFoomaticManager::loadPrinterDriver(KMPrinter *printer, bool)
return createDriverFromXML(&docElem);
}
-KMPrinter* KMFoomaticManager::createPrinterFromElement(QDomElement *elem)
+KMPrinter* KMFoomaticManager::createPrinterFromElement(TQDomElement *elem)
{
QDomElement e = elem->namedItem("name").toElement();
if (!e.isNull())
@@ -128,7 +128,7 @@ KMPrinter* KMFoomaticManager::createPrinterFromElement(QDomElement *elem)
return NULL;
}
-DrMain* KMFoomaticManager::createDriverFromXML(QDomElement *elem)
+DrMain* KMFoomaticManager::createDriverFromXML(TQDomElement *elem)
{
DrMain *driver = new DrMain();
QDomElement pelem = elem->namedItem("printer").toElement(), delem = elem->namedItem("driver").toElement();
@@ -136,7 +136,7 @@ DrMain* KMFoomaticManager::createDriverFromXML(QDomElement *elem)
{
driver->set("manufacturer", pelem.namedItem("make").toElement().text());
driver->set("model", pelem.namedItem("model").toElement().text());
- QString s = QString::fromLatin1("%1 %2 (%3)").arg(driver->get("manufacturer")).arg(driver->get("model")).arg(delem.namedItem("name").toElement().text());
+ QString s = TQString::fromLatin1("%1 %2 (%3)").arg(driver->get("manufacturer")).arg(driver->get("model")).arg(delem.namedItem("name").toElement().text());
driver->set("description", s);
driver->set("text", s);
diff --git a/kdeprint/foomatic/kmfoomaticmanager.h b/kdeprint/foomatic/kmfoomaticmanager.h
index b5d18fc0c..65fa0067e 100644
--- a/kdeprint/foomatic/kmfoomaticmanager.h
+++ b/kdeprint/foomatic/kmfoomaticmanager.h
@@ -28,15 +28,15 @@ class KMPrinter;
class KMFoomaticManager : public KMManager
{
public:
- KMFoomaticManager(QObject *parent, const char *name, const QStringList & /*args*/);
+ KMFoomaticManager(TQObject *parent, const char *name, const TQStringList & /*args*/);
virtual ~KMFoomaticManager();
DrMain* loadPrinterDriver(KMPrinter *p, bool config = false);
protected:
void listPrinters();
- KMPrinter* createPrinterFromElement(QDomElement*);
- DrMain* createDriverFromXML(QDomElement*);
+ KMPrinter* createPrinterFromElement(TQDomElement*);
+ DrMain* createDriverFromXML(TQDomElement*);
};
#endif