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/myrootpixmap.h | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) (limited to 'client/myrootpixmap.h') diff --git a/client/myrootpixmap.h b/client/myrootpixmap.h index dc0b72c..9f3ac6f 100644 --- a/client/myrootpixmap.h +++ b/client/myrootpixmap.h @@ -14,25 +14,26 @@ #ifndef __KRootPixmap_h_Included__ #define __KRootPixmap_h_Included__ -#include -#include +#include +#include -#ifndef Q_WS_QWS //FIXME +#ifndef TQ_WS_TQWS //FIXME -class QRect; -class QWidget; -class QTimer; +class TQRect; +class TQWidget; +class TQTimer; class KSharedPixmap; class KMyRootPixmapData; -class KMyRootPixmap: public QObject +class KMyRootPixmap: public TQObject { Q_OBJECT + TQ_OBJECT public: - KMyRootPixmap( QWidget *target=NULL, const char *name=0 ); + KMyRootPixmap( TQWidget *target=NULL, const char *name=0 ); - KMyRootPixmap( QWidget *target, QObject *parent, const char *name=0 ); + KMyRootPixmap( TQWidget *target, TQObject *tqparent, const char *name=0 ); virtual ~KMyRootPixmap(); @@ -54,23 +55,23 @@ public slots: virtual void stop(); -// void setFadeEffect(double strength, const QColor &color); +// void setFadeEffect(double strength, const TQColor &color); - void repaint( bool force ); + void tqrepaint( bool force ); - void repaint(); + void tqrepaint(); // void setCustomPainting( bool enable ) { m_bCustomPaint = enable; } void enableExports(); - static QString pixmapName(int desk); + static TQString pixmapName(int desk); signals: - void backgroundUpdated( const QImage *pm ); + void backgroundUpdated( const TQImage *pm ); protected: -// virtual bool eventFilter(QObject *, QEvent *); +// virtual bool eventFilter(TQObject *, TQEvent *); virtual void updateBackground( KSharedPixmap * ); @@ -83,16 +84,16 @@ private: int m_Desk; // double m_Fade; -// QColor m_FadeColor; +// TQColor m_FadeColor; - QRect m_Rect; -// QWidget *m_pWidget; -// QTimer *m_pTimer; + TQRect m_Rect; +// TQWidget *m_pWidget; +// TQTimer *m_pTimer; KSharedPixmap *m_pPixmap; // KMyRootPixmapData *d; void init(); }; -#endif // ! Q_WS_QWS +#endif // ! TQ_WS_TQWS #endif // __KRootPixmap_h_Included__ -- cgit v1.2.1