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 --- ksnapshot/ksnapshotwidget.ui.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'ksnapshot/ksnapshotwidget.ui.h') diff --git a/ksnapshot/ksnapshotwidget.ui.h b/ksnapshot/ksnapshotwidget.ui.h index d7e757f5..ab811bf2 100644 --- a/ksnapshot/ksnapshotwidget.ui.h +++ b/ksnapshot/ksnapshotwidget.ui.h @@ -32,21 +32,21 @@ void KSnapshotWidget::slotModeChanged( int mode ) } -void KSnapshotWidget::setPreview( const QPixmap &pm ) +void KSnapshotWidget::setPreview( const TQPixmap &pm ) { - QImage img = pm.convertToImage(); + TQImage img = pm.convertToImage(); double r1 = ( ( double ) pm.height() ) / pm.width(); if ( r1 * previewWidth() < previewHeight() ) img = img.smoothScale( previewWidth(), int( previewWidth() * r1 ), - QImage::ScaleMin ); + TQImage::ScaleMin ); else img = img.smoothScale( ( int ) ( ( ( double )previewHeight() ) / r1 ), - previewHeight(), QImage::ScaleMin ); + previewHeight(), TQImage::ScaleMin ); - QToolTip::remove( lblImage ); - QToolTip::add( lblImage, - QString( "Preview of the snapshot image (%1 x %2)" ) + TQToolTip::remove( lblImage ); + TQToolTip::add( lblImage, + TQString( "Preview of the snapshot image (%1 x %2)" ) .arg( pm.width() ).arg( pm.height() ) ); lblImage->setPixmap( img ); @@ -115,7 +115,7 @@ void KSnapshotWidget::slotStartDrag() } -QPixmap KSnapshotWidget::preview() +TQPixmap KSnapshotWidget::preview() { return *lblImage->pixmap(); } -- cgit v1.2.1