diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-29 16:05:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-29 16:05:55 +0000 |
commit | 87a016680e3677da3993f333561e79eb0cead7d5 (patch) | |
tree | cbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/gui/oscilloscopeview.h | |
parent | 6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff) | |
download | ktechlab-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/oscilloscopeview.h')
-rw-r--r-- | src/gui/oscilloscopeview.h | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/src/gui/oscilloscopeview.h b/src/gui/oscilloscopeview.h index 97cb595..d9daaa0 100644 --- a/src/gui/oscilloscopeview.h +++ b/src/gui/oscilloscopeview.h @@ -11,28 +11,29 @@ #ifndef OSCILLOSCOPEVIEW_H #define OSCILLOSCOPEVIEW_H -#include <qframe.h> +#include <tqframe.h> class Oscilloscope; class Simulator; -class QMouseEvent; -class QPaintEvent; -class QPixmap; -class QTimer; +class TQMouseEvent; +class TQPaintEvent; +class TQPixmap; +class TQTimer; /** @author David Saxton */ -class OscilloscopeView : public QFrame +class OscilloscopeView : public TQFrame { Q_OBJECT + TQ_OBJECT public: - OscilloscopeView( QWidget *parent, const char *name = 0 ); + OscilloscopeView( TQWidget *tqparent, const char *name = 0 ); virtual ~OscilloscopeView(); public slots: /** - * Sets the needRedraw flag to true, and then class repaint + * Sets the needRedraw flag to true, and then class tqrepaint */ void updateView(); void slotSetFrameRate( int fps ); @@ -41,20 +42,20 @@ class OscilloscopeView : public QFrame void updateViewTimeout(); protected: - virtual void mousePressEvent( QMouseEvent *event ); - virtual void mouseMoveEvent( QMouseEvent *event ); - virtual void mouseReleaseEvent( QMouseEvent *event ); - virtual void paintEvent( QPaintEvent *event ); - virtual void resizeEvent( QResizeEvent *event ); + virtual void mousePressEvent( TQMouseEvent *event ); + virtual void mouseMoveEvent( TQMouseEvent *event ); + virtual void mouseReleaseEvent( TQMouseEvent *event ); + virtual void paintEvent( TQPaintEvent *event ); + virtual void resizeEvent( TQResizeEvent *event ); - void drawLogicData( QPainter & p ); - void drawFloatingData( QPainter & p ); + void drawLogicData( TQPainter & p ); + void drawFloatingData( TQPainter & p ); void updateOutputHeight(); void updateTimeLabel(); bool b_needRedraw; - QPixmap *m_pixmap; - QTimer *m_updateViewTmr; + TQPixmap *m_pixmap; + TQTimer *m_updateViewTmr; int m_fps; int m_sliderValueAtClick; int m_clickOffsetPos; |