summaryrefslogtreecommitdiffstats
path: root/kghostview/kpswidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kghostview/kpswidget.cpp')
-rw-r--r--kghostview/kpswidget.cpp28
1 files changed, 13 insertions, 15 deletions
diff --git a/kghostview/kpswidget.cpp b/kghostview/kpswidget.cpp
index aae2f479..e89d19e3 100644
--- a/kghostview/kpswidget.cpp
+++ b/kghostview/kpswidget.cpp
@@ -27,7 +27,7 @@
#include <kdebug.h>
#include <tdelocale.h>
#include <tdemessagebox.h>
-#include <kprocess.h>
+#include <tdeprocess.h>
#include "configuration.h"
@@ -279,8 +279,8 @@ void KPSWidget::setupWidget()
Q_ASSERT( orientation() != CDSC_ORIENT_UNKNOWN );
- const float dpiX = _magnification * TQT_TQPAINTDEVICE(this)->x11AppDpiX();
- const float dpiY = _magnification * TQT_TQPAINTDEVICE(this)->x11AppDpiY();
+ const float dpiX = _magnification * this->x11AppDpiX();
+ const float dpiY = _magnification * this->x11AppDpiY();
int newWidth = 0, newHeight = 0;
if( orientation() == CDSC_PORTRAIT || orientation() == CDSC_UPSIDEDOWN )
@@ -298,7 +298,7 @@ void KPSWidget::setupWidget()
{
setEraseColor( white );
setFixedSize( newWidth, newHeight );
- kapp->processEvents();
+ tdeApp->processEvents();
_backgroundPixmap.resize( size() );
_backgroundPixmap.fill( white );
@@ -358,16 +358,16 @@ bool KPSWidget::startInterpreter()
else
*_process << _fileName << "-c" << "quit";
- 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* ) ) );
+ connect( _process, TQ_SIGNAL( processExited( TDEProcess* ) ),
+ this, TQ_SLOT( slotProcessExited( TDEProcess* ) ) );
+ connect( _process, TQ_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ),
+ this, TQ_SLOT( gs_output( TDEProcess*, char*, int ) ) );
+ connect( _process, TQ_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ),
+ this, TQ_SLOT( gs_output( TDEProcess*, char*, int ) ) );
+ connect( _process, TQ_SIGNAL( wroteStdin( TDEProcess*) ),
+ this, TQ_SLOT( gs_input( TDEProcess* ) ) );
- kapp->flushX();
+ tdeApp->flushX();
// Finally fire up the interpreter.
kdDebug(4500) << "KPSWidget: starting interpreter" << endl;
@@ -526,5 +526,3 @@ bool KPSWidget::x11Event( XEvent* e )
}
#include "kpswidget.moc"
-
-// vim:sw=4:sts=4:ts=8:noet