diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 06:50:25 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 06:50:25 +0000 |
commit | a7dcba0bccd505f672310722d7205c60f57c9c17 (patch) | |
tree | b78db5f5c2c96cad7a2c18feb8aebdf4c44fa879 /src/thememoodin.h | |
parent | 63dc78a1d3758ddb8a4d1f7fa947969141fe6a15 (diff) | |
download | ksplash-engine-moodin-a7dcba0bccd505f672310722d7205c60f57c9c17.tar.gz ksplash-engine-moodin-a7dcba0bccd505f672310722d7205c60f57c9c17.zip |
TQt4 port ksplash-engine-moodin
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ksplash-engine-moodin@1238987 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/thememoodin.h')
-rw-r--r-- | src/thememoodin.h | 67 |
1 files changed, 34 insertions, 33 deletions
diff --git a/src/thememoodin.h b/src/thememoodin.h index 39f4798..8f3ea18 100644 --- a/src/thememoodin.h +++ b/src/thememoodin.h @@ -12,7 +12,7 @@ #ifndef THEMEMOODIN_H #define THEMEMOODIN_H -#include <qptrlist.h> +#include <tqptrlist.h> #include <kdebug.h> #include <kpixmap.h> @@ -24,34 +24,35 @@ #include "cache.h" #include "effectwidget.h" -typedef QPtrList<EffectWidget> EffectWidgetList; -typedef QValueList<QPoint> CoordsList; -typedef QValueList<QColor> ColorList; -typedef QValueList<QFont> FontList; -typedef QPtrList<QImage> ImageList; +typedef TQPtrList<EffectWidget> EffectWidgetList; +typedef TQValueList<TQPoint> CoordsList; +typedef TQValueList<TQColor> ColorList; +typedef TQValueList<TQFont> FontList; +typedef TQPtrList<TQImage> ImageList; class ThemeMoodin: public ThemeEngine { Q_OBJECT + TQ_OBJECT public: - ThemeMoodin(QWidget *parent, const char *name, const QStringList& flags); + ThemeMoodin(TQWidget *tqparent, const char *name, const TQStringList& flags); - inline const QString name() { return QString("Moodin"); } + inline const TQString name() { return TQString("Moodin"); } inline const int version() { return 0x042; } - static QStringList names() + static TQStringList names() { - QStringList l; + TQStringList l; l << "Moodin"; return l; }; - static QStringList statusPixmaps() + static TQStringList statusPixmaps() { - QStringList l; + TQStringList l; l << "filetypes"; // 1 filetypes l << "exec"; // 2 exec @@ -66,8 +67,8 @@ public: }; public slots: - void slotSetText(const QString& s); - void slotSetPixmap(const QString&); + void slotSetText(const TQString& s); + void slotSetPixmap(const TQString&); private: bool mUseIconSet; @@ -86,19 +87,19 @@ private: int mLabelCount; float mBeginOpacity; - QString mCurrentAction; - QString mBackgroundImage; - QStringList mStatusIcons; - QStringList mStatusMessages; - QStringList mLabels; - QColor mStatusColor; - QColor mLabelShadowColor; - QFont mStatusFont; - QPoint mStatusCoords; - QPoint mLabelShadowOffset; - QWidget* mContainer; - QSize mBaseResolution; - QRect mSplashRect; + TQString mCurrentAction; + TQString mBackgroundImage; + TQStringList mStatusIcons; + TQStringList mStatusMessages; + TQStringList mLabels; + TQColor mStatusColor; + TQColor mLabelShadowColor; + TQFont mStatusFont; + TQPoint mStatusCoords; + TQPoint mLabelShadowOffset; + TQWidget* mContainer; + TQSize mBaseResolution; + TQRect mSplashRect; KPixmap* mBG; @@ -114,16 +115,16 @@ private: ImageList mImages; void init(); - void initBackground(QPainter* p); + void initBackground(TQPainter* p); void initEffectWidgets(); - void initLabels(QPainter* p); + void initLabels(TQPainter* p); - void paintEvent(QPaintEvent* pe); + void paintEvent(TQPaintEvent* pe); void readSettings(); - void arrangeWidget(QWidget* me, const int index); - void updateStatus(); + void arrangeWidget(TQWidget* me, const int index); + void updatetqStatus(); - EffectWidget* createEffectWidget(QWidget *parent, QImage *image); + EffectWidget* createEffectWidget(TQWidget *tqparent, TQImage *image); }; #endif |