diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
commit | 560378aaca1784ba19806a0414a32b20c744de39 (patch) | |
tree | ce0dfd7c3febf2a1adc7603d1019a8be2083c415 /kdeprint/kmvirtualmanager.cpp | |
parent | d4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff) | |
download | tdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip |
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/kmvirtualmanager.cpp')
-rw-r--r-- | kdeprint/kmvirtualmanager.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kdeprint/kmvirtualmanager.cpp b/kdeprint/kmvirtualmanager.cpp index 268da3eac..349a8ae21 100644 --- a/kdeprint/kmvirtualmanager.cpp +++ b/kdeprint/kmvirtualmanager.cpp @@ -53,22 +53,22 @@ KMVirtualManager::~KMVirtualManager() { } -KMPrinter* KMVirtualManager::findPrinter(const TQString& name) +KMPrinter* KMVirtualManager::tqfindPrinter(const TQString& name) { - return m_manager->findPrinter(name); + return m_manager->tqfindPrinter(name); } -KMPrinter* KMVirtualManager::findInstance(KMPrinter *p, const TQString& name) +KMPrinter* KMVirtualManager::tqfindInstance(KMPrinter *p, const TQString& name) { QString instname(instanceName(p->printerName(),name)); - return findPrinter(instname); + return tqfindPrinter(instname); } void KMVirtualManager::addPrinter(KMPrinter *p) { if (p && p->isValid()) { - KMPrinter *other = findPrinter(p->name()); + KMPrinter *other = tqfindPrinter(p->name()); if (other) { other->copy(*p); @@ -97,7 +97,7 @@ void KMVirtualManager::setDefault(KMPrinter *p, bool saveflag) bool KMVirtualManager::isDefault(KMPrinter *p, const TQString& name) { QString instname(instanceName(p->printerName(),name)); - KMPrinter *printer = findPrinter(instname); + KMPrinter *printer = tqfindPrinter(instname); if (printer) return printer->isSoftDefault(); else @@ -107,7 +107,7 @@ bool KMVirtualManager::isDefault(KMPrinter *p, const TQString& name) void KMVirtualManager::create(KMPrinter *p, const TQString& name) { QString instname = instanceName(p->printerName(),name); - if (findPrinter(instname) != NULL) return; + if (tqfindPrinter(instname) != NULL) return; KMPrinter *printer = new KMPrinter; printer->setName(instname); printer->setPrinterName(p->printerName()); @@ -124,8 +124,8 @@ void KMVirtualManager::create(KMPrinter *p, const TQString& name) void KMVirtualManager::copy(KMPrinter *p, const TQString& src, const TQString& name) { QString instsrc(instanceName(p->printerName(),src)), instname(instanceName(p->printerName(),name)); - KMPrinter *prsrc = findPrinter(instsrc); - if (!prsrc || findPrinter(instname) != NULL) return; + KMPrinter *prsrc = tqfindPrinter(instsrc); + if (!prsrc || tqfindPrinter(instname) != NULL) return; KMPrinter *printer = new KMPrinter; printer->copy(*prsrc); printer->setName(instname); @@ -138,7 +138,7 @@ void KMVirtualManager::copy(KMPrinter *p, const TQString& src, const TQString& n void KMVirtualManager::remove(KMPrinter *p, const TQString& name) { QString instname = instanceName(p->printerName(),name); - KMPrinter *printer = findPrinter(instname); + KMPrinter *printer = tqfindPrinter(instname); if (!printer) return; if (name.isEmpty()) { // remove default instance => only remove options, keep the KMPrinter object @@ -167,11 +167,11 @@ void KMVirtualManager::setAsDefault(KMPrinter *p, const TQString& name, TQWidget return; } - KMPrinter *printer = findPrinter(instname); + KMPrinter *printer = tqfindPrinter(instname); if (!printer) { // create it if necessary create(p,name); - printer = findPrinter(instname); + printer = tqfindPrinter(instname); } if (printer) setDefault(printer,true); @@ -210,7 +210,7 @@ void KMVirtualManager::refresh() void KMVirtualManager::checkPrinter(KMPrinter *p) { - KMPrinter *realprinter = m_manager->findPrinter(p->printerName()); + KMPrinter *realprinter = m_manager->tqfindPrinter(p->printerName()); if (!realprinter || realprinter->isDiscarded()) { p->setType(KMPrinter::Invalid); @@ -263,7 +263,7 @@ void KMVirtualManager::loadFile(const TQString& filename) words = TQStringList::split(' ',line,false); if (words.count() < 2) continue; pair = TQStringList::split('/',words[1],false); - realprinter = m_manager->findPrinter(KURL::decode_string(pair[0])); + realprinter = m_manager->tqfindPrinter(KURL::decode_string(pair[0])); if (realprinter && !realprinter->isDiscarded()) { // keep only instances corresponding to an existing and // non discarded printer. @@ -286,7 +286,7 @@ void KMVirtualManager::loadFile(const TQString& filename) addPrinter(printer); // don't use "printer" after this point !!! // check default state if (words[0].lower().startsWith("default")) - setDefault(findPrinter(KURL::decode_string(words[1])),false); + setDefault(tqfindPrinter(KURL::decode_string(words[1])),false); } } } |