diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeprint/kprintprocess.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/kprintprocess.cpp')
-rw-r--r-- | kdeprint/kprintprocess.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kdeprint/kprintprocess.cpp b/kdeprint/kprintprocess.cpp index 830f8c885..65ae44eb5 100644 --- a/kdeprint/kprintprocess.cpp +++ b/kdeprint/kprintprocess.cpp @@ -20,35 +20,35 @@ #include "kprintprocess.h" #include <kapplication.h> #include <klocale.h> -#include <qfile.h> +#include <tqfile.h> KPrintProcess::KPrintProcess() : KShellProcess() { // redirect everything to a single buffer - connect(this,SIGNAL(receivedStdout(KProcess*,char*,int)),SLOT(slotReceivedStderr(KProcess*,char*,int))); - connect(this,SIGNAL(receivedStderr(KProcess*,char*,int)),SLOT(slotReceivedStderr(KProcess*,char*,int))); - connect( this, SIGNAL( processExited( KProcess* ) ), SLOT( slotExited( KProcess* ) ) ); + connect(this,TQT_SIGNAL(receivedStdout(KProcess*,char*,int)),TQT_SLOT(slotReceivedStderr(KProcess*,char*,int))); + connect(this,TQT_SIGNAL(receivedStderr(KProcess*,char*,int)),TQT_SLOT(slotReceivedStderr(KProcess*,char*,int))); + connect( this, TQT_SIGNAL( processExited( KProcess* ) ), TQT_SLOT( slotExited( KProcess* ) ) ); m_state = None; } KPrintProcess::~KPrintProcess() { if ( !m_tempoutput.isEmpty() ) - QFile::remove( m_tempoutput ); + TQFile::remove( m_tempoutput ); if ( m_tempfiles.size() > 0 ) - for ( QStringList::ConstIterator it=m_tempfiles.begin(); it!=m_tempfiles.end(); ++it ) - QFile::remove( *it ); + for ( TQStringList::ConstIterator it=m_tempfiles.begin(); it!=m_tempfiles.end(); ++it ) + TQFile::remove( *it ); } -QString KPrintProcess::errorMessage() const +TQString KPrintProcess::errorMessage() const { return m_buffer; } bool KPrintProcess::print() { - m_buffer = QString::null; + m_buffer = TQString::null; m_state = Printing; return start(NotifyOnExit,All); } @@ -57,7 +57,7 @@ void KPrintProcess::slotReceivedStderr(KProcess *proc, char *buf, int len) { if (proc == this) { - QCString str = QCString(buf,len).stripWhiteSpace(); + QCString str = TQCString(buf,len).stripWhiteSpace(); m_buffer.append(str.append("\n")); } } |