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/imageholder.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/imageholder.h')
-rw-r--r-- | client/imageholder.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/client/imageholder.h b/client/imageholder.h index b88ac87..e41e000 100644 --- a/client/imageholder.h +++ b/client/imageholder.h @@ -28,34 +28,35 @@ struct WND_CONFIG; -class QImageHolder:public QObject +class TQImageHolder:public TQObject { Q_OBJECT + TQ_OBJECT public: - QImageHolder(QImage act,QImage inact); - virtual ~QImageHolder(); + TQImageHolder(TQImage act,TQImage inact); + virtual ~TQImageHolder(); void Init(); - QPixmap *image(bool active) { Init(); return active?img_active:img_inactive; } - void repaint(bool force); + TQPixmap *image(bool active) { Init(); return active?img_active:img_inactive; } + void tqrepaint(bool force); - void setUserdefinedPictures(QImage act,QImage inact); + void setUserdefinedPictures(TQImage act,TQImage inact); private: bool initialized; KMyRootPixmap *rootpixmap; - QPixmap *img_active,*img_inactive; + TQPixmap *img_active,*img_inactive; bool userdefinedActive,userdefinedInactive; - QPixmap* ApplyEffect(QImage &src,WND_CONFIG* cfg,QColorGroup colorgroup); + TQPixmap* ApplyEffect(TQImage &src,WND_CONFIG* cfg,TQColorGroup colorgroup); public slots: - void BackgroundUpdated(const QImage *); + void BackgroundUpdated(const TQImage *); void handleDesktopChanged(int desk); void CheckSanity(); signals: - void repaintNeeded(); + void tqrepaintNeeded(); }; |