From ffe8a83e053396df448e9413828527613ca3bd46 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:46:43 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdeprint/kmspecialmanager.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'kdeprint/kmspecialmanager.cpp') diff --git a/kdeprint/kmspecialmanager.cpp b/kdeprint/kmspecialmanager.cpp index 7e9288e6d..7ccebedff 100644 --- a/kdeprint/kmspecialmanager.cpp +++ b/kdeprint/kmspecialmanager.cpp @@ -24,7 +24,7 @@ #include "kxmlcommand.h" #include "driver.h" -#include +#include #include #include #include @@ -36,7 +36,7 @@ #include KMSpecialManager::KMSpecialManager(KMManager *parent, const char *name) -: QObject(parent,name), m_mgr(parent), m_loaded(false) +: TQObject(parent,name), m_mgr(parent), m_loaded(false) { } @@ -66,15 +66,15 @@ bool KMSpecialManager::savePrinters() conf.setGroup("General"); int n = conf.readNumEntry("Number",0); for (int i=0;i it(m_mgr->m_printers); + TQPtrListIterator it(m_mgr->m_printers); for (;it.current();++it) { if (!it.current()->isSpecial() || it.current()->isVirtual()) continue; - conf.setGroup(QString::fromLatin1("Printer %1").arg(n)); + conf.setGroup(TQString::fromLatin1("Printer %1").arg(n)); conf.writeEntry("Name",it.current()->name()); conf.writeEntry("Description",it.current()->description()); conf.writeEntry("Comment",it.current()->location()); @@ -93,7 +93,7 @@ bool KMSpecialManager::savePrinters() if (getuid() == 0) { conf.sync(); - ::chmod(QFile::encodeName(confname), S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH); + ::chmod(TQFile::encodeName(confname), S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH); } // force reload on next update @@ -112,7 +112,7 @@ bool KMSpecialManager::loadPrinters() // local files should processed last, so we need to reorder the list // and put local files at the end QStringList orderedFiles; - for (QStringList::ConstIterator it=files.begin(); it!=files.end(); ++it) + for (TQStringList::ConstIterator it=files.begin(); it!=files.end(); ++it) { if ((*it).startsWith(localDir)) orderedFiles.append(*it); @@ -120,7 +120,7 @@ bool KMSpecialManager::loadPrinters() orderedFiles.prepend(*it); } // then parse the ordered list - for (QStringList::ConstIterator it=orderedFiles.begin(); it!=orderedFiles.end() && result; ++it) + for (TQStringList::ConstIterator it=orderedFiles.begin(); it!=orderedFiles.end() && result; ++it) { // skip the local file for root if (getuid() == 0 && (*it).startsWith(localDir)) @@ -132,14 +132,14 @@ bool KMSpecialManager::loadPrinters() return result; } -bool KMSpecialManager::loadDesktopFile(const QString& filename) +bool KMSpecialManager::loadDesktopFile(const TQString& filename) { KSimpleConfig conf(filename); conf.setGroup("General"); int n = conf.readNumEntry("Number",0); for (int i=0;i it(m_mgr->m_printers); + TQPtrListIterator it(m_mgr->m_printers); for (;it.current();++it) if (it.current()->isSpecial()) { it.current()->setDiscarded(false); it.current()->setType(KMPrinter::Special); - if (KdeprintChecker::check(QStringList::split(',',it.current()->option("kde-special-require"),false))) + if (KdeprintChecker::check(TQStringList::split(',',it.current()->option("kde-special-require"),false))) it.current()->addType(KMPrinter::Invalid); } } @@ -192,7 +192,7 @@ KXmlCommand* KMSpecialManager::loadCommand(KMPrinter *pr) return xmlCmd; } -KXmlCommand* KMSpecialManager::loadCommand(const QString& xmlId) +KXmlCommand* KMSpecialManager::loadCommand(const TQString& xmlId) { return KXmlCommandManager::self()->loadCommand(xmlId, true); } @@ -211,7 +211,7 @@ DrMain* KMSpecialManager::loadDriver(KMPrinter *pr) return driver; } -QString KMSpecialManager::setupCommand(const QString& cmd, const QMap& opts) +TQString KMSpecialManager::setupCommand(const TQString& cmd, const TQMap& opts) { QString s(cmd); if (!s.isEmpty()) -- cgit v1.2.3