From e0e4bf64073ac54a136c2b42b5530687b246f24a Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 1 Jul 2011 20:48:12 +0000 Subject: 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 --- src/VButton.h | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'src/VButton.h') 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 -#include +#include +#include -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); -- cgit v1.2.1