summaryrefslogtreecommitdiffstats
path: root/kdeprint/kprinter.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-16 02:40:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-16 02:40:35 +0000
commitbab40890696ec68c337dc290880423a0602b83c7 (patch)
tree6ba03f720b1fa88235ba339e7aedb4455430357e /kdeprint/kprinter.cpp
parentf7e71d47719ab6094cf4a9fafffa5ea351973522 (diff)
downloadtdelibs-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/kprinter.cpp')
-rw-r--r--kdeprint/kprinter.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kdeprint/kprinter.cpp b/kdeprint/kprinter.cpp
index 34e215a8e..4a7134435 100644
--- a/kdeprint/kprinter.cpp
+++ b/kdeprint/kprinter.cpp
@@ -52,14 +52,14 @@ static void reportError(KPrinter*);
// KPrinterWrapper class
//**************************************************************************************
-class KPrinterWrapper : public QPrinter
+class KPrinterWrapper : public TQPrinter
{
friend class KPrinter;
public:
KPrinterWrapper(KPrinter*, PrinterMode m = ScreenResolution);
~KPrinterWrapper();
protected:
- virtual bool cmd(int, TQPainter*, QPDevCmdParam*);
+ virtual bool cmd(int, TQPainter*, TQPDevCmdParam*);
virtual int metric(int) const;
int qprinterMetric(int) const;
private:
@@ -75,7 +75,7 @@ KPrinterWrapper::~KPrinterWrapper()
{
}
-bool KPrinterWrapper::cmd(int c, TQPainter *painter, QPDevCmdParam *p)
+bool KPrinterWrapper::cmd(int c, TQPainter *painter, TQPDevCmdParam *p)
{
return TQPrinter::cmd(c,painter,p);
}
@@ -272,7 +272,7 @@ KPrinter::ApplicationType KPrinter::applicationType()
return (ApplicationType)KMFactory::self()->settings()->application;
}
-bool KPrinter::cmd(int c, TQPainter *painter, QPDevCmdParam *p)
+bool KPrinter::cmd(int c, TQPainter *painter, TQPDevCmdParam *p)
{
bool value(true);
if (c == TQPaintDevice::PdcBegin)
@@ -357,7 +357,7 @@ void KPrinter::translateQtOptions()
bool KPrinter::printFiles(const TQStringList& l, bool flag, bool startviewer)
{
- QStringList files(l);
+ TQStringList files(l);
bool status(true);
// First apply possible filters, and update "remove" flag if filters has
@@ -483,7 +483,7 @@ TQValueList<int> KPrinter::pageList() const
// process range specification
if (!option("kde-range").isEmpty())
{
- QStringList ranges = TQStringList::split(',',option("kde-range"),false);
+ TQStringList ranges = TQStringList::split(',',option("kde-range"),false);
for (TQStringList::ConstIterator it=ranges.begin();it!=ranges.end();++it)
{
int p = (*it).tqfind('-');
@@ -638,7 +638,7 @@ void KPrinter::setOptions(const TQMap<TQString,TQString>& opts)
tmpset.remove( "kde-resolution" );
tmpset.remove( "kde-fonts" );
for (TQMap<TQString,TQString>::ConstIterator it=tmpset.begin();it!=tmpset.end();++it)
- if (it.key().left(4) == "kde-" && !(d->m_options.contains(it.key())))
+ if (it.key().left(4) == "kde-" && !(d->m_options.tqcontains(it.key())))
d->m_options[it.key()] = it.data();
}
@@ -879,7 +879,7 @@ void KPrinter::setPrintProgram(const TQString& prg)
}
else
{
- QString s(prg);
+ TQString s(prg);
if (s.tqfind("%in") == -1)
s.append(" %in");
setOutputToFile( s.tqfind( "%out" ) != -1 );