summaryrefslogtreecommitdiffstats
path: root/renamedlgplugins/images
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
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')
-rw-r--r--renamedlgplugins/images/image_plugin.cpp2
-rw-r--r--renamedlgplugins/images/imagevisualizer.cpp14
-rw-r--r--renamedlgplugins/images/imagevisualizer.h5
3 files changed, 11 insertions, 10 deletions
diff --git a/renamedlgplugins/images/image_plugin.cpp b/renamedlgplugins/images/image_plugin.cpp
index 0bc6567..65023f7 100644
--- a/renamedlgplugins/images/image_plugin.cpp
+++ b/renamedlgplugins/images/image_plugin.cpp
@@ -70,7 +70,7 @@ bool ImagePlugin::initialize( KIO::RenameDlg_Mode mode, const TQString &_src, co
TQLabel *label = new TQLabel(this );
label->setText(i18n("You want to overwrite the left picture with the one on the right.") );
label->adjustSize();
- lay->addMultiCellWidget(label, 1, 1, 0, 2, Qt::AlignHCenter );
+ lay->addMultiCellWidget(label, 1, 1, 0, 2, TQt::AlignHCenter );
adjustSize();
}
ImageVisualizer *left= new ImageVisualizer(this, "Visualizer Left", _dest );
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 );
diff --git a/renamedlgplugins/images/imagevisualizer.h b/renamedlgplugins/images/imagevisualizer.h
index b1a5006..867efea 100644
--- a/renamedlgplugins/images/imagevisualizer.h
+++ b/renamedlgplugins/images/imagevisualizer.h
@@ -24,11 +24,12 @@
class TQPixmap;
class TQLabel;
-class ImageVisualizer : public QVBox
+class ImageVisualizer : public TQVBox
{
Q_OBJECT
+ TQ_OBJECT
public:
- ImageVisualizer(TQWidget *parent, const char *name, const TQString &fileName );
+ ImageVisualizer(TQWidget *tqparent, const char *name, const TQString &fileName );
private:
void loadImage( const TQString& path );