summaryrefslogtreecommitdiffstats
path: root/kweather/weatherbutton.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 21:31:21 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 21:31:21 +0000
commita1bd60b34891ccc77056c190d7871bc4b14fe654 (patch)
tree713f2f72c8f08a18df12f5bbeef7f9b61b19d4f1 /kweather/weatherbutton.cpp
parent8d92c3c2a4131996726cc7b625d3cd3caec296de (diff)
downloadtdetoys-a1bd60b34891ccc77056c190d7871bc4b14fe654.tar.gz
tdetoys-a1bd60b34891ccc77056c190d7871bc4b14fe654.zip
TQt4 port kdetoys
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1238103 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kweather/weatherbutton.cpp')
-rw-r--r--kweather/weatherbutton.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kweather/weatherbutton.cpp b/kweather/weatherbutton.cpp
index 3cbdebe..cc3c145 100644
--- a/kweather/weatherbutton.cpp
+++ b/kweather/weatherbutton.cpp
@@ -29,8 +29,8 @@
#include <kipc.h>
#include <kstandarddirs.h>
-WeatherButton::WeatherButton( TQWidget *parent, const char *name )
- : TQButton( parent, name ), m_highlight( false )
+WeatherButton::WeatherButton( TQWidget *tqparent, const char *name )
+ : TQButton( tqparent, name ), m_highlight( false )
{
setBackgroundOrigin( AncestorOrigin );
@@ -98,7 +98,7 @@ void WeatherButton::generateIcons()
return;
TQImage image = pixmap()->convertToImage();
- image = image.smoothScale( pixmapSize(), TQImage::ScaleMin );
+ image = image.smoothScale( pixmapSize(), TQ_ScaleMin );
KIconEffect effect;
@@ -124,14 +124,14 @@ void WeatherButton::slotIconChanged( int group )
return;
generateIcons();
- repaint( false );
+ tqrepaint( false );
}
void WeatherButton::enterEvent( TQEvent *e )
{
m_highlight = true;
- repaint( false );
+ tqrepaint( false );
TQButton::enterEvent( e );
}
@@ -139,7 +139,7 @@ void WeatherButton::leaveEvent( TQEvent *e )
{
m_highlight = false;
- repaint( false );
+ tqrepaint( false );
TQButton::enterEvent( e );
}