diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-16 02:40:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-16 02:40:35 +0000 |
commit | bab40890696ec68c337dc290880423a0602b83c7 (patch) | |
tree | 6ba03f720b1fa88235ba339e7aedb4455430357e /kdeprint/rlpr/kmrlprmanager.cpp | |
parent | f7e71d47719ab6094cf4a9fafffa5ea351973522 (diff) | |
download | tdelibs-bab40890696ec68c337dc290880423a0602b83c7.tar.gz tdelibs-bab40890696ec68c337dc290880423a0602b83c7.zip |
Finished remaining porting to new TQt API
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214736 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/rlpr/kmrlprmanager.cpp')
-rw-r--r-- | kdeprint/rlpr/kmrlprmanager.cpp | 20 |
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; |