summaryrefslogtreecommitdiffstats
path: root/src/VButton.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/VButton.h')
-rw-r--r--src/VButton.h25
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);