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/kmvirtualmanager.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/kmvirtualmanager.cpp')
-rw-r--r-- | kdeprint/kmvirtualmanager.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kdeprint/kmvirtualmanager.cpp b/kdeprint/kmvirtualmanager.cpp index 268da3eac..b5cb808b5 100644 --- a/kdeprint/kmvirtualmanager.cpp +++ b/kdeprint/kmvirtualmanager.cpp @@ -179,8 +179,8 @@ void KMVirtualManager::setAsDefault(KMPrinter *p, const TQString& name, TQWidget void KMVirtualManager::refresh() { - QFileInfo fi(TQDir::homeDirPath() + TQFile::decodeName("/.cups/.lpoptions")); - QFileInfo fi2(TQFile::decodeName("/etc/cups/lpoptions")); + TQFileInfo fi(TQDir::homeDirPath() + TQFile::decodeName("/.cups/.lpoptions")); + TQFileInfo fi2(TQFile::decodeName("/etc/cups/lpoptions")); // if root, then only use global file: trick -> use twice the same file if (getuid() == 0) @@ -246,14 +246,14 @@ void KMVirtualManager::virtualList(TQPtrList<KMPrinter>& list, const TQString& p void KMVirtualManager::loadFile(const TQString& filename) { - QFile f(filename); + TQFile f(filename); if (f.exists() && f.open(IO_ReadOnly)) { - QTextStream t(&f); + TQTextStream t(&f); - QString line; - QStringList words; - QStringList pair; + TQString line; + TQStringList words; + TQStringList pair; KMPrinter *printer, *realprinter; while (!t.eof()) @@ -317,10 +317,10 @@ void KMVirtualManager::triggerSave() void KMVirtualManager::saveFile(const TQString& filename) { - QFile f(filename); + TQFile f(filename); if (f.open(IO_WriteOnly)) { - QTextStream t(&f); + TQTextStream t(&f); TQPtrListIterator<KMPrinter> it(m_manager->m_printers); for (;it.current();++it) { @@ -347,7 +347,7 @@ void KMVirtualManager::saveFile(const TQString& filename) bool KMVirtualManager::testInstance(KMPrinter *p) { - QString testpage = KMManager::self()->testPage(); + TQString testpage = KMManager::self()->testPage(); if (testpage.isEmpty()) return false; else |