diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 21:17:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 21:17:46 +0000 |
commit | 21a1d3cffb820b001b0901f8e82d4c8bfc5e1683 (patch) | |
tree | ad9d08bc725d963acafab219a33699ae2d6e723c /client/buttonimage.h | |
parent | 424422475d6f30da2b84041dcb2b13b425126f04 (diff) | |
download | twin-style-crystal-21a1d3cffb820b001b0901f8e82d4c8bfc5e1683.tar.gz twin-style-crystal-21a1d3cffb820b001b0901f8e82d4c8bfc5e1683.zip |
TQt4 port kwin-style-crystal
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kwin-style-crystal@1239032 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'client/buttonimage.h')
-rw-r--r-- | client/buttonimage.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/client/buttonimage.h b/client/buttonimage.h index 32284f6..79026c3 100644 --- a/client/buttonimage.h +++ b/client/buttonimage.h @@ -23,7 +23,7 @@ #ifndef _BUTTON_IMAGE_INCLUDED_ #define _BUTTON_IMAGE_INCLUDED_ -#include <qimage.h> +#include <tqimage.h> #include "crystalclient.h" #define DEFAULT_IMAGE_SIZE 14 @@ -32,35 +32,35 @@ class ButtonImage { public: - QImage *normal,*hovered,*pressed; + TQImage *normal,*hovered,*pressed; int image_width,image_height; int hSpace,vSpace; int drawMode; - QColor normal_color,hovered_color,pressed_color; + TQColor normal_color,hovered_color,pressed_color; - QImage *animated; - QRgb *normal_data,*hovered_data,*animated_data,*pressed_data; - QRgb *org_normal_data,*org_hovered_data; + TQImage *animated; + TQRgb *normal_data,*hovered_data,*animated_data,*pressed_data; + TQRgb *org_normal_data,*org_hovered_data; - ButtonImage(const QRgb *d_normal=NULL,int w=DEFAULT_IMAGE_SIZE,int h=DEFAULT_IMAGE_SIZE); + ButtonImage(const TQRgb *d_normal=NULL,int w=DEFAULT_IMAGE_SIZE,int h=DEFAULT_IMAGE_SIZE); virtual ~ButtonImage(); - void SetNormal(const QRgb *d_normal,int w=DEFAULT_IMAGE_SIZE,int h=DEFAULT_IMAGE_SIZE); - void SetHovered(const QRgb *d_hovered=NULL); - void SetPressed(const QRgb *d_pressed=NULL); + void SetNormal(const TQRgb *d_normal,int w=DEFAULT_IMAGE_SIZE,int h=DEFAULT_IMAGE_SIZE); + void SetHovered(const TQRgb *d_hovered=NULL); + void SetPressed(const TQRgb *d_pressed=NULL); void reset(); void finish(); bool initialized(); void setSpace(int hS,int vS) { hSpace=hS; vSpace=vS; } void setDrawMode(int dm) { drawMode=dm; } - void setColors(QColor n,QColor h,QColor p) { normal_color=n; hovered_color=h; pressed_color=p; } + void setColors(TQColor n,TQColor h,TQColor p) { normal_color=n; hovered_color=h; pressed_color=p; } - QImage* getAnimated(float anim); + TQImage* getAnimated(float anim); private: - QImage CreateImage(QRgb *data,QColor color); - void tint(QRgb *data,QColor color); + TQImage CreateImage(TQRgb *data,TQColor color); + void tint(TQRgb *data,TQColor color); }; #endif |