summaryrefslogtreecommitdiffstats
path: root/kview/kviewviewer/kviewkonqextension.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kview/kviewviewer/kviewkonqextension.cpp
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kview/kviewviewer/kviewkonqextension.cpp')
-rw-r--r--kview/kviewviewer/kviewkonqextension.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kview/kviewviewer/kviewkonqextension.cpp b/kview/kviewviewer/kviewkonqextension.cpp
index 40876b7c..b3f16a93 100644
--- a/kview/kviewviewer/kviewkonqextension.cpp
+++ b/kview/kviewviewer/kviewkonqextension.cpp
@@ -23,9 +23,9 @@
#include "kimageviewer/canvas.h"
#include "imagesettings.h"
-#include <qpainter.h>
-#include <qimage.h>
-#include <qpaintdevicemetrics.h>
+#include <tqpainter.h>
+#include <tqimage.h>
+#include <tqpaintdevicemetrics.h>
#include <kprinter.h>
#include <kdebug.h>
@@ -64,23 +64,23 @@ void KViewKonqExtension::print()
return;
}
- KPrinter printer;//( true, QPrinter::ScreenResolution );
+ KPrinter printer;//( true, TQPrinter::ScreenResolution );
printer.addDialogPage( new ImageSettings );
printer.setDocName( "KView: " + m_pViewer->url().fileName( false ) );
if ( !printer.setup( ((KViewViewer *)parent())->widget(), i18n("Print %1").arg(m_pViewer->url().fileName( false )) ) )
return;
- QPainter painter;
+ TQPainter painter;
painter.begin( &printer );
- QPaintDeviceMetrics metrics( painter.device() );
+ TQPaintDeviceMetrics metrics( painter.device() );
kdDebug( 4610 ) << "metrics: " << metrics.width() << "x" << metrics.height() << endl;
- QPoint pos( 0, 0 );
+ TQPoint pos( 0, 0 );
- QImage imagetoprint;
+ TQImage imagetoprint;
if( printer.option( "app-kviewviewer-fitimage" ) == "1" )
- imagetoprint = m_pCanvas->image()->smoothScale( metrics.width(), metrics.height(), QImage::ScaleMin );
+ imagetoprint = m_pCanvas->image()->smoothScale( metrics.width(), metrics.height(), TQImage::ScaleMin );
else
imagetoprint = *m_pCanvas->image();