From eba47f8f0637f451e21348187591e1f1fd58ac74 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:23:46 +0000 Subject: TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kview/kviewviewer/kviewkonqextension.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'kview/kviewviewer/kviewkonqextension.cpp') 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 -#include -#include +#include +#include +#include #include #include @@ -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(); -- cgit v1.2.1