summaryrefslogtreecommitdiffstats
path: root/ksnapshot/ksnapshotwidget.ui.h
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 /ksnapshot/ksnapshotwidget.ui.h
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 'ksnapshot/ksnapshotwidget.ui.h')
-rw-r--r--ksnapshot/ksnapshotwidget.ui.h16
1 files changed, 8 insertions, 8 deletions
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();
}