diff options
Diffstat (limited to 'noatun/modules/kjofol-skin/kjwidget.h')
-rw-r--r-- | noatun/modules/kjofol-skin/kjwidget.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/noatun/modules/kjofol-skin/kjwidget.h b/noatun/modules/kjofol-skin/kjwidget.h index cc7ddf53..3f63671b 100644 --- a/noatun/modules/kjofol-skin/kjwidget.h +++ b/noatun/modules/kjofol-skin/kjwidget.h @@ -9,14 +9,14 @@ public: KJWidget(KJLoader *); virtual ~KJWidget() {}; // called when the widget should paint - virtual void paint(QPainter *, const QRect &) {}; + virtual void paint(TQPainter *, const TQRect &) {}; // called to receive the rect this widget is in - virtual QRect rect() const { return mRect; } + virtual TQRect rect() const { return mRect; } // called when pressed in this widget - virtual bool mousePress(const QPoint &) {return false; } + virtual bool mousePress(const TQPoint &) {return false; } // called when the mouse is released after clicked in this widget - virtual void mouseRelease(const QPoint &, bool){} - virtual void mouseMove(const QPoint &, bool) {} + virtual void mouseRelease(const TQPoint &, bool){} + virtual void mouseMove(const TQPoint &, bool) {} // called with the current time (mille) virtual void timeUpdate(int) {} // called when a new song is playing, player() is ready with it too @@ -26,15 +26,15 @@ public: // called when the mouse is moved while clicked in this widget // repaint myself - virtual void repaint(bool me=true, const QRect &rect=QRect(), bool clear=false); + virtual void repaint(bool me=true, const TQRect &rect=TQRect(), bool clear=false); - virtual QString tip() { return 0; } + virtual TQString tip() { return 0; } public: - static QBitmap getMask(const QImage &color, register QRgb=qRgb(255,0,255)); + static TQBitmap getMask(const TQImage &color, register QRgb=qRgb(255,0,255)); protected: - const QString &backgroundPressed(const QString &bmp) const; + const TQString &backgroundPressed(const TQString &bmp) const; KJLoader *parent() const {return mParent;} KJLoader &parser() const {return *mParent;} @@ -43,11 +43,11 @@ protected: KJFont &volumeFont() const {return *mParent->mVolumeFont;} KJFont &pitchFont() const {return *mParent->mPitchFont;} - void setRect(const QRect& rect) {mRect=rect;} - void setRect(int x, int y, int xs, int ys) {mRect=QRect(x,y,xs,ys);} + void setRect(const TQRect& rect) {mRect=rect;} + void setRect(int x, int y, int xs, int ys) {mRect=TQRect(x,y,xs,ys);} private: KJLoader *mParent; - QRect mRect; + TQRect mRect; }; #endif |