diff options
Diffstat (limited to 'lib/kopainter/koFrameButton.h')
| -rw-r--r-- | lib/kopainter/koFrameButton.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/lib/kopainter/koFrameButton.h b/lib/kopainter/koFrameButton.h index c540fd9f5..d05e1d1f7 100644 --- a/lib/kopainter/koFrameButton.h +++ b/lib/kopainter/koFrameButton.h @@ -21,18 +21,19 @@ #ifndef __ko_framebutton_h__ #define __ko_framebutton_h__ -#include <qlabel.h> +#include <tqlabel.h> -class QPixmap; -class QString; +class TQPixmap; +class TQString; -class KoFrameButton : public QLabel +class KoFrameButton : public TQLabel { Q_OBJECT + TQ_OBJECT public: - KoFrameButton(QWidget *parent = 0, const char *name = 0); - KoFrameButton(const QString &text, QWidget *parent = 0, const char *name = 0); - KoFrameButton(const QPixmap &pixmap, QWidget *parent = 0, const char *name = 0); + KoFrameButton(TQWidget *tqparent = 0, const char *name = 0); + KoFrameButton(const TQString &text, TQWidget *tqparent = 0, const char *name = 0); + KoFrameButton(const TQPixmap &pixmap, TQWidget *tqparent = 0, const char *name = 0); bool isOn() {return mActive; } void setOn(bool v); @@ -40,21 +41,21 @@ public: bool isToggleButton() {return mToggle; } void setToggleButton(bool v); - QString text() {return mText; } - virtual void setText(const QString &t); + TQString text() {return mText; } + virtual void setText(const TQString &t); signals: void clicked(); - void clicked(const QString &); + void clicked(const TQString &); protected: - void mousePressEvent(QMouseEvent *); - void mouseReleaseEvent(QMouseEvent *); + void mousePressEvent(TQMouseEvent *); + void mouseReleaseEvent(TQMouseEvent *); private: bool mActive; bool mToggle; - QString mText; + TQString mText; }; #endif |
