summaryrefslogtreecommitdiffstats
path: root/kdeprint/rlpr/kmrlprmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdeprint/rlpr/kmrlprmanager.cpp')
-rw-r--r--kdeprint/rlpr/kmrlprmanager.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kdeprint/rlpr/kmrlprmanager.cpp b/kdeprint/rlpr/kmrlprmanager.cpp
index eafb1a497..f455fd1ff 100644
--- a/kdeprint/rlpr/kmrlprmanager.cpp
+++ b/kdeprint/rlpr/kmrlprmanager.cpp
@@ -20,15 +20,15 @@
#include "kmrlprmanager.h"
#include "kmprinter.h"
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qtextstream.h>
-#include <qmap.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqtextstream.h>
+#include <tqmap.h>
#include <kstandarddirs.h>
#include <klocale.h>
-KMRlprManager::KMRlprManager(QObject *parent, const char *name, const QStringList & /*args*/)
+KMRlprManager::KMRlprManager(TQObject *parent, const char *name, const TQStringList & /*args*/)
: KMManager(parent,name)
{
setHasManagement(true);
@@ -88,7 +88,7 @@ void KMRlprManager::listPrinters()
discardAllPrinters(false);
}
-void KMRlprManager::loadPrintersConf(const QString& filename)
+void KMRlprManager::loadPrintersConf(const TQString& filename)
{
QFile f(filename);
if (f.exists() && f.open(IO_ReadOnly))
@@ -100,7 +100,7 @@ void KMRlprManager::loadPrintersConf(const QString& filename)
line = t.readLine().stripWhiteSpace();
if (line.isEmpty() || line[0] == '#')
continue;
- QStringList w = QStringList::split('\t',line,true);
+ QStringList w = TQStringList::split('\t',line,true);
if (w.count() < 3)
continue;
@@ -116,7 +116,7 @@ void KMRlprManager::loadPrintersConf(const QString& filename)
if (w.count() > 4) printer->setLocation(w[4]);
}
printer->setState(KMPrinter::Idle);
- printer->setDevice(QString::fromLatin1("lpd://%1/%2").arg(w[1]).arg(w[2]));
+ printer->setDevice(TQString::fromLatin1("lpd://%1/%2").arg(w[1]).arg(w[2]));
addPrinter(printer);
}
@@ -128,14 +128,14 @@ void KMRlprManager::savePrinters()
savePrintersConf(printerFile());
}
-void KMRlprManager::savePrintersConf(const QString& filename)
+void KMRlprManager::savePrintersConf(const TQString& filename)
{
QFile f(filename);
if (f.open(IO_WriteOnly))
{
QTextStream t(&f);
t << "# File generated by KDE print system. Don't edit by hand." << endl;
- QPtrListIterator<KMPrinter> it(m_printers);
+ TQPtrListIterator<KMPrinter> it(m_printers);
for (;it.current();++it)
{
if (!it.current()->name().isEmpty() && it.current()->instanceName().isEmpty())
@@ -152,7 +152,7 @@ void KMRlprManager::savePrintersConf(const QString& filename)
}
}
-QString KMRlprManager::printerFile()
+TQString KMRlprManager::printerFile()
{
return locateLocal("data","kdeprint/printers.conf");
}