From 21a1d3cffb820b001b0901f8e82d4c8bfc5e1683 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 1 Jul 2011 21:17:46 +0000 Subject: 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 --- client/imageholder.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'client/imageholder.h') 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(); }; -- cgit v1.2.3