summaryrefslogtreecommitdiffstats
path: root/src/gui/probepositioner.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
commit87a016680e3677da3993f333561e79eb0cead7d5 (patch)
treecbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/gui/probepositioner.h
parent6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff)
downloadktechlab-87a016680e3677da3993f333561e79eb0cead7d5.tar.gz
ktechlab-87a016680e3677da3993f333561e79eb0cead7d5.zip
TQt4 port ktechlab
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1238801 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/probepositioner.h')
-rw-r--r--src/gui/probepositioner.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/gui/probepositioner.h b/src/gui/probepositioner.h
index d106b40..c99c0ab 100644
--- a/src/gui/probepositioner.h
+++ b/src/gui/probepositioner.h
@@ -11,10 +11,10 @@
#ifndef PROBEPOSITIONER_H
#define PROBEPOSITIONER_H
-#include <qwidget.h>
+#include <tqwidget.h>
class ProbeData;
-typedef QMap< int, ProbeData* > ProbeDataMap;
+typedef TQMap< int, ProbeData* > ProbeDataMap;
const float probeArrowWidth = 9;
const float probeArrowHeight = 12;
@@ -23,11 +23,12 @@ const float probeArrowHeight = 12;
Widget for positioning the output of Probes in the OscilloscopeView
@author David Saxton
*/
-class ProbePositioner : public QWidget
+class ProbePositioner : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- ProbePositioner(QWidget *parent = 0, const char *name = 0);
+ ProbePositioner(TQWidget *tqparent = 0, const char *name = 0);
~ProbePositioner();
/**
* Returns the amount of space (height in pixels) that a probe output
@@ -50,7 +51,7 @@ class ProbePositioner : public QWidget
* or NULL if none. Records the offset of the position from the mouse
* in m_probePosOffset.
*/
- ProbeData* probeAtPosition( const QPoint &pos );
+ ProbeData* probeAtPosition( const TQPoint &pos );
public slots:
void forceRepaint();
@@ -60,18 +61,18 @@ class ProbePositioner : public QWidget
void slotProbeDataUnregistered( int id );
protected:
- virtual void mousePressEvent( QMouseEvent * e );
- virtual void mouseReleaseEvent( QMouseEvent * e );
- virtual void mouseMoveEvent( QMouseEvent * e );
- virtual void paintEvent( QPaintEvent *e );
- virtual void resizeEvent( QResizeEvent *event );
+ virtual void mousePressEvent( TQMouseEvent * e );
+ virtual void mouseReleaseEvent( TQMouseEvent * e );
+ virtual void mouseMoveEvent( TQMouseEvent * e );
+ virtual void paintEvent( TQPaintEvent *e );
+ virtual void resizeEvent( TQResizeEvent *event );
ProbeDataMap m_probeDataMap;
ProbeData *p_draggedProbe;
int m_probePosOffset;
bool b_needRedraw;
- QPixmap *m_pixmap;
+ TQPixmap *m_pixmap;
};
#endif