From 6adb71382c3d5277c3dcbc4ec24c5ff36b4c07ef Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 24 Jan 2013 13:45:52 -0600 Subject: Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4 --- kghostview/kpswidget.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'kghostview/kpswidget.cpp') diff --git a/kghostview/kpswidget.cpp b/kghostview/kpswidget.cpp index eafd3831..a5e66757 100644 --- a/kghostview/kpswidget.cpp +++ b/kghostview/kpswidget.cpp @@ -342,7 +342,7 @@ bool KPSWidget::startInterpreter() { setupWidget(); - _process = new KProcess; + _process = new TDEProcess; if ( _doubleBuffer ) _process->setEnvironment( "GHOSTVIEW", TQString( "%1 %2" ).arg( winId() ).arg( _backgroundPixmap.handle() ) ); else _process->setEnvironment( "GHOSTVIEW", TQString::number( winId() ) ); @@ -358,21 +358,21 @@ bool KPSWidget::startInterpreter() else *_process << _fileName << "-c" << "quit"; - connect( _process, TQT_SIGNAL( processExited( KProcess* ) ), - this, TQT_SLOT( slotProcessExited( KProcess* ) ) ); - connect( _process, TQT_SIGNAL( receivedStdout( KProcess*, char*, int ) ), - this, TQT_SLOT( gs_output( KProcess*, char*, int ) ) ); - connect( _process, TQT_SIGNAL( receivedStderr( KProcess*, char*, int ) ), - this, TQT_SLOT( gs_output( KProcess*, char*, int ) ) ); - connect( _process, TQT_SIGNAL( wroteStdin( KProcess*) ), - this, TQT_SLOT( gs_input( KProcess* ) ) ); + connect( _process, TQT_SIGNAL( processExited( TDEProcess* ) ), + this, TQT_SLOT( slotProcessExited( TDEProcess* ) ) ); + connect( _process, TQT_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ), + this, TQT_SLOT( gs_output( TDEProcess*, char*, int ) ) ); + connect( _process, TQT_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ), + this, TQT_SLOT( gs_output( TDEProcess*, char*, int ) ) ); + connect( _process, TQT_SIGNAL( wroteStdin( TDEProcess*) ), + this, TQT_SLOT( gs_input( TDEProcess* ) ) ); kapp->flushX(); // Finally fire up the interpreter. kdDebug(4500) << "KPSWidget: starting interpreter" << endl; - if( _process->start( KProcess::NotifyOnExit, - _usePipe ? KProcess::All : KProcess::AllOutput ) ) + if( _process->start( TDEProcess::NotifyOnExit, + _usePipe ? TDEProcess::All : TDEProcess::AllOutput ) ) { _interpreterBusy = true; setCursor( waitCursor ); @@ -412,7 +412,7 @@ void KPSWidget::interpreterFailed() stopInterpreter(); } -void KPSWidget::slotProcessExited( KProcess* process ) +void KPSWidget::slotProcessExited( TDEProcess* process ) { kdDebug(4500) << "KPSWidget: process exited" << endl; @@ -430,12 +430,12 @@ void KPSWidget::slotProcessExited( KProcess* process ) } } -void KPSWidget::gs_output( KProcess*, char* buffer, int len ) +void KPSWidget::gs_output( TDEProcess*, char* buffer, int len ) { emit output( buffer, len ); } -void KPSWidget::gs_input( KProcess* process ) +void KPSWidget::gs_input( TDEProcess* process ) { kdDebug(4500) << "KPSWidget::gs_input" << endl; -- cgit v1.2.3