From 2c9bc9b806f533df7b8f5349467d0f4be95314a4 Mon Sep 17 00:00:00 2001 From: gregory guy Date: Sat, 13 Jun 2020 16:09:24 +0200 Subject: Conversion qt3 -> tqt3 Signed-off-by: gregory guy --- src/app/analyzer.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/app/analyzer.h') diff --git a/src/app/analyzer.h b/src/app/analyzer.h index 6fdb12f..edd526e 100644 --- a/src/app/analyzer.h +++ b/src/app/analyzer.h @@ -8,9 +8,9 @@ #include #endif -#include //stack allocated and convenience -#include //stack allocated -#include //baseclass +#include //stack allocated and convenience +#include //stack allocated +#include //baseclass #include //included for convenience namespace Analyzer @@ -23,44 +23,44 @@ namespace Analyzer uint timeout() const { return m_timeout; } protected: - Base( QWidget*, uint ); + Base( TQWidget*, uint ); virtual void transform( Scope& ) = 0; virtual void analyze( const Scope& ) = 0; private: - virtual bool event( QEvent* ); + virtual bool event( TQEvent* ); protected: - QTimer m_timer; + TQTimer m_timer; uint m_timeout; }; - class Base2D : public Base + class Base2D : public Base { Q_OBJECT public: - const QPixmap *canvas() const { return &m_canvas; } + const TQPixmap *canvas() const { return &m_canvas; } private slots: void draw(); protected: - Base2D( QWidget*, uint timeout ); + Base2D( TQWidget*, uint timeout ); - QPixmap *canvas() { return &m_canvas; } + TQPixmap *canvas() { return &m_canvas; } - void paintEvent( QPaintEvent* ) { if( !m_canvas.isNull() ) bitBlt( this, 0, 0, canvas() ); } - void resizeEvent( QResizeEvent* ); + void paintEvent( TQPaintEvent* ) { if( !m_canvas.isNull() ) bitBlt( this, 0, 0, canvas() ); } + void resizeEvent( TQResizeEvent* ); private: - QPixmap m_canvas; + TQPixmap m_canvas; }; class Block : public Analyzer::Base2D { public: - Block( QWidget* ); + Block( TQWidget* ); protected: virtual void transform( Analyzer::Scope& ); -- cgit v1.2.1