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.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kdeprint/rlpr/kmrlprmanager.cpp b/kdeprint/rlpr/kmrlprmanager.cpp
index 718969116..3a5460dda 100644
--- a/kdeprint/rlpr/kmrlprmanager.cpp
+++ b/kdeprint/rlpr/kmrlprmanager.cpp
@@ -59,7 +59,7 @@ bool KMRlprManager::createPrinter(KMPrinter *p)
bool KMRlprManager::removePrinter(KMPrinter *p)
{
- if (m_printers.findRef(p) == -1)
+ if (m_printers.tqfindRef(p) == -1)
setErrorMsg(i18n("Printer not found."));
else
{
@@ -78,7 +78,7 @@ bool KMRlprManager::testPrinter(KMPrinter *)
void KMRlprManager::listPrinters()
{
- QFileInfo pfi(printerFile());
+ TQFileInfo pfi(printerFile());
if (pfi.exists() && (!m_checktime.isValid() || m_checktime < pfi.lastModified()))
{
loadPrintersConf(pfi.absFilePath());
@@ -90,17 +90,17 @@ void KMRlprManager::listPrinters()
void KMRlprManager::loadPrintersConf(const TQString& filename)
{
- QFile f(filename);
+ TQFile f(filename);
if (f.exists() && f.open(IO_ReadOnly))
{
- QTextStream t(&f);
- QString line;
+ TQTextStream t(&f);
+ TQString line;
while (!t.eof())
{
line = t.readLine().stripWhiteSpace();
if (line.isEmpty() || line[0] == '#')
continue;
- QStringList w = TQStringList::split('\t',line,true);
+ TQStringList w = TQStringList::split('\t',line,true);
if (w.count() < 3)
continue;
@@ -130,18 +130,18 @@ void KMRlprManager::savePrinters()
void KMRlprManager::savePrintersConf(const TQString& filename)
{
- QFile f(filename);
+ TQFile f(filename);
if (f.open(IO_WriteOnly))
{
- QTextStream t(&f);
+ TQTextStream t(&f);
t << "# File generated by KDE print system. Don't edit by hand." << endl;
TQPtrListIterator<KMPrinter> it(m_printers);
for (;it.current();++it)
{
if (!it.current()->name().isEmpty() && it.current()->instanceName().isEmpty())
{
- QString host = it.current()->option("host");
- QString queue = it.current()->option("queue");
+ TQString host = it.current()->option("host");
+ TQString queue = it.current()->option("queue");
if (!host.isEmpty() && !queue.isEmpty())
{
t << it.current()->name() << '\t' << host << '\t' << queue;