From 8155225c9be993acc0512956416d195edfef4eb9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 19 Jan 2011 01:42:14 +0000 Subject: Enable compilation with TQt for Qt4 3.4.0 TP2 This should not break compatibility with TQt for Qt3; if it does please fix it ASAP! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1215552 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdeprint/kprinter/printwrapper.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kdeprint/kprinter/printwrapper.cpp') diff --git a/kdeprint/kprinter/printwrapper.cpp b/kdeprint/kprinter/printwrapper.cpp index f5e67f96e..f8fe1a46d 100644 --- a/kdeprint/kprinter/printwrapper.cpp +++ b/kdeprint/kprinter/printwrapper.cpp @@ -66,7 +66,7 @@ void showmsgdialog(const TQString& msg, int type = 0) void showmsgconsole(const TQString& msg, int type = 0) { - QString errmsg = TQString::fromLatin1("%1 : ").arg((type == 0 ? i18n("Print info") : (type == 1 ? i18n("Print warning") : i18n("Print error")))); + TQString errmsg = TQString::tqfromLatin1("%1 : ").arg((type == 0 ? i18n("Print info") : (type == 1 ? i18n("Print warning") : i18n("Print error")))); kdDebug() << errmsg << msg << endl; } @@ -142,15 +142,15 @@ void PrintWrapper::slotPrint() #endif /* HAVE_SIGACTION && !HAVE_SIGSET*/ // read variables from command line - QString printer = args->getOption("d"); - QString title = args->getOption("t"); + TQString printer = args->getOption("d"); + TQString title = args->getOption("t"); int ncopies = TQString(args->getOption("n")).toInt(); - QString job_mode = args->getOption("j"); - QString system = args->getOption("system"); + TQString job_mode = args->getOption("j"); + TQString system = args->getOption("system"); QCStringList optlist = args->getOptionList("o"); TQMap opts; KURL::List files; - QStringList filestoprint; + TQStringList filestoprint; force_stdin = args->isSet("stdin"); docopy = args->isSet( "c" ); bool nodialog = !(args->isSet("dialog")); @@ -164,7 +164,7 @@ void PrintWrapper::slotPrint() // parse options for (QCStringList::ConstIterator it=optlist.begin(); it!=optlist.end(); ++it) { - QStringList l = TQStringList::split('=',TQString(*it),false); + TQStringList l = TQStringList::split('=',TQString(*it),false); if (l.count() >= 1) opts[l[0]] = (l.count() == 2 ? l[1] : TQString::null); } @@ -265,7 +265,7 @@ void PrintWrapper::slotPrint() connect(dlg, TQT_SIGNAL(printRequested(KPrinter*)), TQT_SLOT(slotPrintRequested(KPrinter*))); if( check_stdin ) { - notif = new TQSocketNotifier( 0, TQSocketNotifier::Read, this ); + notif = new TQSocketNotifier( 0, TQSocketNotifier::Read, TQT_TQOBJECT(this) ); connect( notif, TQT_SIGNAL( activated( int )), this, TQT_SLOT( slotGotStdin())); kdDebug( 500 ) << "waiting for input on stdin" << endl; } @@ -300,10 +300,10 @@ void PrintWrapper::slotPrintRequested(KPrinter *kprinter) kprinter->setDocName(TQString::null); // download files if needed - QStringList files = TQStringList::split("@@", kprinter->option("kde-filelist"), false), filestoprint; + TQStringList files = TQStringList::split("@@", kprinter->option("kde-filelist"), false), filestoprint; for (TQStringList::ConstIterator it=files.begin(); it!=files.end(); ++it) { - QString tmpFile; + TQString tmpFile; KURL url = KURL::fromPathOrURL(*it); kdDebug( 500 ) << url.url() << endl; if (KIO::NetAccess::download(url, tmpFile, this)) -- cgit v1.2.1