summaryrefslogtreecommitdiffstats
path: root/src/gui/probepositioner.h
diff options
context:
space:
mode:
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