diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 20:48:12 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 20:48:12 +0000 |
commit | e0e4bf64073ac54a136c2b42b5530687b246f24a (patch) | |
tree | 2f68d9a750bb8349928a2020d9640d63040e4af4 /src/VButton.h | |
parent | f2c25668ebf4de0e17c6558c1d8e3051057b55fd (diff) | |
download | kvkbd-e0e4bf64073ac54a136c2b42b5530687b246f24a.tar.gz kvkbd-e0e4bf64073ac54a136c2b42b5530687b246f24a.zip |
TQt4 port kvkbd
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvkbd@1239029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/VButton.h')
-rw-r--r-- | src/VButton.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/VButton.h b/src/VButton.h index 1c82877..06d22b6 100644 --- a/src/VButton.h +++ b/src/VButton.h @@ -1,19 +1,20 @@ #ifndef VBUTTON_H #define VBUTTON_H -#include <qpushbutton.h> -#include <qevent.h> +#include <tqpushbutton.h> +#include <tqevent.h> -class VButton : public QPushButton +class VButton : public TQPushButton { Q_OBJECT + TQ_OBJECT public: - VButton(QWidget *parent=0, const char *name=0); + VButton(TQWidget *tqparent=0, const char *name=0); ~VButton(); void setKeyCode(unsigned int keycode); unsigned int getKeyCode(); - void setText(const QString& text); - void setShiftText(const QString& text); + void setText(const TQString& text); + void setShiftText(const TQString& text); void capsPressed(bool press); @@ -28,18 +29,18 @@ private: protected: unsigned int keycode; - QString u; - QString l; - QRect orig_size; - void timerEvent ( QTimerEvent * ); + TQString u; + TQString l; + TQRect orig_size; + void timerEvent ( TQTimerEvent * ); public slots: void sendKey(); void shiftPressed(bool press); protected slots: - void mousePressEvent(QMouseEvent *e); - void mouseReleaseEvent(QMouseEvent *e); + void mousePressEvent(TQMouseEvent *e); + void mouseReleaseEvent(TQMouseEvent *e); signals: void keyClick(unsigned int keycode); |