summaryrefslogtreecommitdiffstats
path: root/kdeprint/kprinter.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-07 03:45:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-07 03:45:53 +0000
commit10308be19ef7fa44699562cc75946e7ea1fdf6b9 (patch)
tree4bc444c00a79e88105f2cfce5b6209994c413ca0 /kdeprint/kprinter.cpp
parent307136d8eef0ba133b78ceee8e901138d4c996a1 (diff)
downloadtdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.tar.gz
tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.zip
Revert automated changes
Sorry guys, they are just not ready for prime time Work will continue as always git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1212479 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 3bdbfd92b..c96db7a8d 100644
--- a/kdeprint/kprinter.cpp
+++ b/kdeprint/kprinter.cpp
@@ -486,7 +486,7 @@ TQValueList<int> KPrinter::pageList() const
QStringList ranges = TQStringList::split(',',option("kde-range"),false);
for (TQStringList::ConstIterator it=ranges.begin();it!=ranges.end();++it)
{
- int p = (*it).tqfind('-');
+ int p = (*it).find('-');
bool ok;
if (p == -1)
{
@@ -519,7 +519,7 @@ TQValueList<int> KPrinter::pageList() const
if (pageOrder() == LastPageFirst)
{
for (uint i=0;i<(list.count()/2);i++)
- tqSwap(list[i],list[list.count()-1-i]);
+ qSwap(list[i],list[list.count()-1-i]);
}
// select page set if needed
@@ -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.tqcontains(it.key())))
+ if (it.key().left(4) == "kde-" && !(d->m_options.contains(it.key())))
d->m_options[it.key()] = it.data();
}
@@ -673,7 +673,7 @@ bool KPrinter::autoConfigure(const TQString& prname, TQWidget *parent)
if (prname.isEmpty())
mprt = mgr->defaultPrinter();
else
- mprt = mgr->tqfindPrinter(prname);
+ mprt = mgr->findPrinter(prname);
if (mprt)
return mprt->autoConfigure(this, parent);
@@ -846,7 +846,7 @@ int KPrinter::toPage() const
{ return (option("kde-topage").isEmpty() ? 0 : option("kde-topage").toInt()); }
void KPrinter::setFromTo(int m, int M)
-{ setOption("kde-frompage",TQString::number(m)); setOption("kde-topage",TQString::number(M)); setOption("kde-range",(m>0 && M>0 ? TQString("%1-%2").arg(m).arg(M) : TQString::tqfromLatin1(""))); }
+{ setOption("kde-frompage",TQString::number(m)); setOption("kde-topage",TQString::number(M)); setOption("kde-range",(m>0 && M>0 ? TQString("%1-%2").arg(m).arg(M) : TQString::fromLatin1(""))); }
// if no page size defined, use the localized one
KPrinter::PageSize KPrinter::pageSize() const
@@ -880,16 +880,16 @@ void KPrinter::setPrintProgram(const TQString& prg)
else
{
QString s(prg);
- if (s.tqfind("%in") == -1)
+ if (s.find("%in") == -1)
s.append(" %in");
- setOutputToFile( s.tqfind( "%out" ) != -1 );
+ setOutputToFile( s.find( "%out" ) != -1 );
setOption("kde-isspecial", "1");
setOption("kde-special-command", s);
}
}
TQString KPrinter::printerSelectionOption() const
-{ return TQString::tqfromLatin1(""); }
+{ return TQString::fromLatin1(""); }
void KPrinter::setPrinterSelectionOption(const TQString&)
{}