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/kmmanager.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/kmmanager.cpp')
-rw-r--r-- | kdeprint/kmmanager.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kdeprint/kmmanager.cpp b/kdeprint/kmmanager.cpp index ec161d755..82136ca78 100644 --- a/kdeprint/kmmanager.cpp +++ b/kdeprint/kmmanager.cpp @@ -42,8 +42,8 @@ KMManager::KMManager(TQObject *parent, const char *name) m_printers.setAutoDelete(true); m_fprinters.setAutoDelete(false); m_hasmanagement = false; - m_printeroperationmask = 0; - m_serveroperationmask = 0; + m_printeroperationtqmask = 0; + m_serveroperationtqmask = 0; m_printerfilter = new PrinterFilter(this); m_specialmgr = new KMSpecialManager(this); @@ -98,7 +98,7 @@ bool KMManager::removePrinter(KMPrinter*) bool KMManager::removePrinter(const TQString& name) { - KMPrinter *p = findPrinter(name); + KMPrinter *p = tqfindPrinter(name); return (p ? removePrinter(p) : false); } @@ -109,7 +109,7 @@ bool KMManager::enablePrinter(KMPrinter*, bool) bool KMManager::enablePrinter(const TQString& name, bool state) { - KMPrinter *p = findPrinter(name); + KMPrinter *p = tqfindPrinter(name); return (p ? enablePrinter(p, state) : false); } @@ -120,7 +120,7 @@ bool KMManager::startPrinter(KMPrinter*, bool) bool KMManager::startPrinter(const TQString& name, bool state) { - KMPrinter *p = findPrinter(name); + KMPrinter *p = tqfindPrinter(name); return (p ? startPrinter(p, state) : false); } @@ -145,7 +145,7 @@ bool KMManager::completePrinterShort(KMPrinter *p) bool KMManager::completePrinter(const TQString& name) { - KMPrinter *p = findPrinter(name); + KMPrinter *p = tqfindPrinter(name); return (p ? completePrinter(p) : false); } @@ -156,7 +156,7 @@ bool KMManager::setDefaultPrinter(KMPrinter*) bool KMManager::setDefaultPrinter(const TQString& name) { - KMPrinter *p = findPrinter(name); + KMPrinter *p = tqfindPrinter(name); return (p ? setDefaultPrinter(p) : false); } @@ -170,7 +170,7 @@ bool KMManager::testPrinter(KMPrinter *prt) return false; } KPrinter pr; - bool prExist = (findPrinter(prt->printerName()) != 0), result(false); + bool prExist = (tqfindPrinter(prt->printerName()) != 0), result(false); pr.setPrinterName(prt->printerName()); pr.setSearchName(prt->name()); pr.setDocName("KDE Print Test"); @@ -186,7 +186,7 @@ bool KMManager::testPrinter(KMPrinter *prt) // return notImplemented(); } -KMPrinter* KMManager::findPrinter(const TQString& name) +KMPrinter* KMManager::tqfindPrinter(const TQString& name) { TQPtrListIterator<KMPrinter> it(m_printers); for (;it.current();++it) @@ -263,12 +263,12 @@ TQPtrList<KMPrinter>* KMManager::printerList(bool reload) m_fprinters.append(prt); } - // try to find the default printer from these situations: + // try to tqfind the default printer from these situations: // - it already exists from .lpoptions file // - use the PRINTER variable if (!softDefault()) { - KMPrinter *defprinter = findPrinter(TQString::fromLatin1(getenv("PRINTER"))); + KMPrinter *defprinter = tqfindPrinter(TQString::tqfromLatin1(getenv("PRINTER"))); if (defprinter) setSoftDefault(defprinter); } @@ -297,7 +297,7 @@ void KMManager::addPrinter(KMPrinter *p) delete p; else { - KMPrinter *other = findPrinter(p->name()); + KMPrinter *other = tqfindPrinter(p->name()); if (other) { other->copy(*p); @@ -400,7 +400,7 @@ void KMManager::setSoftDefault(KMPrinter *p) if (p) { p->setSoftDefault(true); - KMPrinter *pp = findPrinter(p->printerName()); + KMPrinter *pp = tqfindPrinter(p->printerName()); if (pp) pp->setOwnSoftDefault(true); } @@ -443,7 +443,7 @@ bool KMManager::createSpecialPrinter(KMPrinter *p) { if (p && p->isSpecial()) { - KMPrinter *old = findPrinter(p->name()); + KMPrinter *old = tqfindPrinter(p->name()); if (old && !old->isSpecial()) { setErrorMsg(i18n("Can't overwrite regular printer with special printer settings.")); @@ -458,7 +458,7 @@ bool KMManager::createSpecialPrinter(KMPrinter *p) bool KMManager::removeSpecialPrinter(KMPrinter *p) { - if (p && p->isSpecial() && m_printers.findRef(p) != -1) + if (p && p->isSpecial() && m_printers.tqfindRef(p) != -1) { m_printers.removeRef(p); return m_specialmgr->savePrinters(); @@ -475,7 +475,7 @@ TQStringList KMManager::detectLocalPrinters() { QStringList list; for (int i=0; i<3; i++) - list << TQString::null << TQString::fromLatin1("parallel:/dev/lp%1").arg(i) << i18n("Parallel Port #%1").arg(i+1) << TQString::null; + list << TQString::null << TQString::tqfromLatin1("parallel:/dev/lp%1").arg(i) << i18n("Parallel Port #%1").arg(i+1) << TQString::null; return list; } @@ -488,7 +488,7 @@ int KMManager::addPrinterWizard(TQWidget *parent) { int (*func)(TQWidget*) = (int(*)(TQWidget*))lib->symbol("add_printer_wizard"); if (!func) - setErrorMsg(i18n("Unable to find wizard object in management library.")); + setErrorMsg(i18n("Unable to tqfind wizard object in management library.")); else return func(parent); } @@ -504,7 +504,7 @@ bool KMManager::invokeOptionsDialog(TQWidget *parent) { bool (*func)(TQWidget*) = (bool(*)(TQWidget*))lib->symbol("config_dialog"); if (!func) - setErrorMsg(i18n("Unable to find options dialog in management library.")); + setErrorMsg(i18n("Unable to tqfind options dialog in management library.")); else return func(parent); } |