summaryrefslogtreecommitdiffstats
path: root/renamedlgplugins/images/imagevisualizer.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 17:00:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 17:00:31 +0000
commit395a904bff7b4d6ead445c342f7ac0c5fbf29121 (patch)
tree9829cadb79d2cc7c29a940627fadb28b11e54150 /renamedlgplugins/images/imagevisualizer.cpp
parent399f47c376fdf4d19192732a701ea9578d11619d (diff)
downloadtdeaddons-395a904bff7b4d6ead445c342f7ac0c5fbf29121.tar.gz
tdeaddons-395a904bff7b4d6ead445c342f7ac0c5fbf29121.zip
TQt4 port kdeaddons
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1237404 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'renamedlgplugins/images/imagevisualizer.cpp')
-rw-r--r--renamedlgplugins/images/imagevisualizer.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/renamedlgplugins/images/imagevisualizer.cpp b/renamedlgplugins/images/imagevisualizer.cpp
index 706787c..e9fe6c2 100644
--- a/renamedlgplugins/images/imagevisualizer.cpp
+++ b/renamedlgplugins/images/imagevisualizer.cpp
@@ -30,8 +30,8 @@
#include "imagevisualizer.h"
-ImageVisualizer::ImageVisualizer( TQWidget *parent, const char *name, const TQString &fileName )
- : TQVBox( parent, name )
+ImageVisualizer::ImageVisualizer( TQWidget *tqparent, const char *name, const TQString &fileName )
+ : TQVBox( tqparent, name )
{
pic = 0;
description = 0;
@@ -58,14 +58,14 @@ ImageVisualizer::ImageVisualizer( TQWidget *parent, const char *name, const TQSt
void ImageVisualizer::loadImage( const TQString& path )
{
TQImage img(path);
- TQPixmap pixmap(img.smoothScale(180,200, TQImage::ScaleMin) );
- pic->setText( TQString::null );
+ TQPixmap pixmap(img.smoothScale(180,200, TQ_ScaleMin) );
+ pic->setText( TQString() );
pic->setPixmap(pixmap );
pic->adjustSize();
TQString desc;
- desc.append(i18n("The color depth of an image", "Depth: %1\n").arg( img.depth() ));
- desc.append(i18n("The dimensions of an image", "Dimensions: %1x%1").arg(img.width()).arg(img.height() ));
+ desc.append(i18n("The color depth of an image", "Depth: %1\n").tqarg( img.depth() ));
+ desc.append(i18n("The dimensions of an image", "Dimensions: %1x%1").tqarg(img.width()).tqarg(img.height() ));
description->setText(desc );
description->adjustSize();
}
@@ -73,7 +73,7 @@ void ImageVisualizer::loadImage( const TQString& path )
void ImageVisualizer::downloadImage(const TQString& url)
{
TQString tmpFile;
- if( KIO::NetAccess::download( KURL::fromPathOrURL( url ), tmpFile , topLevelWidget()) )
+ if( KIO::NetAccess::download( KURL::fromPathOrURL( url ), tmpFile , tqtopLevelWidget()) )
{
loadImage( tmpFile );
KIO::NetAccess::removeTempFile( tmpFile );