summaryrefslogtreecommitdiffstats
path: root/src/regiongrabber.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/regiongrabber.h')
-rw-r--r--src/regiongrabber.h33
1 files changed, 17 insertions, 16 deletions
diff --git a/src/regiongrabber.h b/src/regiongrabber.h
index 528c4ff..4493011 100644
--- a/src/regiongrabber.h
+++ b/src/regiongrabber.h
@@ -22,24 +22,25 @@
#ifndef REGIONGRABBER_H
#define REGIONGRABBER_H
-#include <qlabel.h>
-#include <qpixmap.h>
+#include <tqlabel.h>
+#include <tqpixmap.h>
-class QTimer;
+class TQTimer;
-class SizeTip : public QLabel
+class SizeTip : public TQLabel
{
public:
- SizeTip( QWidget *parent, const char *name=0 );
+ SizeTip( TQWidget *tqparent, const char *name=0 );
~SizeTip() {}
- void setTip( const QRect &rect );
- void positionTip( const QRect &rect );
+ void setTip( const TQRect &rect );
+ void positionTip( const TQRect &rect );
};
-class RegionGrabber : public QWidget
+class RegionGrabber : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
RegionGrabber(int delay);
@@ -50,22 +51,22 @@ class RegionGrabber : public QWidget
void updateSizeTip();
signals:
- void regionGrabbed( const QPixmap & );
+ void regionGrabbed( const TQPixmap & );
protected:
- void mousePressEvent( QMouseEvent *e );
- void mouseReleaseEvent( QMouseEvent *e );
- void mouseMoveEvent( QMouseEvent *e );
- void keyPressEvent( QKeyEvent *e );
+ void mousePressEvent( TQMouseEvent *e );
+ void mouseReleaseEvent( TQMouseEvent *e );
+ void mouseMoveEvent( TQMouseEvent *e );
+ void keyPressEvent( TQKeyEvent *e );
void drawRubber();
bool mouseDown;
- QRect grabRect;
- QPixmap pixmap;
+ TQRect grabRect;
+ TQPixmap pixmap;
SizeTip *sizeTip;
- QTimer *tipTimer;
+ TQTimer *tipTimer;
};
#endif // REGIONGRABBER_H