From fecb0e67b23e8b83ba7fc881bb57bc48c0852d62 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 5 Jul 2011 06:00:29 +0000 Subject: TQt4 port kmymoney This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239855 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkdchart/KDChartWidget.h | 53 +++++++++++++++++++++++----------------------- 1 file changed, 27 insertions(+), 26 deletions(-) (limited to 'libkdchart/KDChartWidget.h') diff --git a/libkdchart/KDChartWidget.h b/libkdchart/KDChartWidget.h index d117daa..635e0bd 100644 --- a/libkdchart/KDChartWidget.h +++ b/libkdchart/KDChartWidget.h @@ -32,9 +32,9 @@ #include #include #include -#include -#include -#include +#include +#include +#include /** \file KDChartWidget.h @@ -45,17 +45,18 @@ class KDChartParams; -class KDCHART_EXPORT KDChartWidget : public QWidget +class KDCHART_EXPORT KDChartWidget : public TQWidget { Q_OBJECT - Q_PROPERTY( bool activeData READ isActiveData WRITE setActiveData ) - Q_PROPERTY( bool doubleBuffered READ isDoubleBuffered WRITE setDoubleBuffered ) + TQ_OBJECT + TQ_PROPERTY( bool activeData READ isActiveData WRITE setActiveData ) + TQ_PROPERTY( bool doubleBuffered READ isDoubleBuffered WRITE setDoubleBuffered ) public: - KDChartWidget( QWidget* parent = 0, const char* name = 0 ); + KDChartWidget( TQWidget* tqparent = 0, const char* name = 0 ); KDChartWidget( KDChartParams* params, KDChartTableDataBase* data, - QWidget* parent = 0, const char* name = 0 ); + TQWidget* tqparent = 0, const char* name = 0 ); ~KDChartWidget(); public slots: @@ -72,47 +73,47 @@ public slots: void setParams( KDChartParams* params ); void setData( KDChartTableDataBase* data ); // use this method to paint to low resolution devices - void paintTo( QPainter& painter, - const QRect* rect = 0 ); + void paintTo( TQPainter& painter, + const TQRect* rect = 0 ); // use this method to paint to high res devices like printers... - void print( QPainter& painter, - const QRect* rect = 0 ); + void print( TQPainter& painter, + const TQRect* rect = 0 ); signals: void dataLeftClicked( uint row, uint col ); - void dataLeftClicked( const QPoint & pnt ); + void dataLeftClicked( const TQPoint & pnt ); void dataMiddleClicked( uint row, uint col ); - void dataMiddleClicked( const QPoint & pnt ); + void dataMiddleClicked( const TQPoint & pnt ); void dataRightClicked( uint row, uint col ); - void dataRightClicked( const QPoint & pnt ); + void dataRightClicked( const TQPoint & pnt ); void dataLeftPressed( uint row, uint col ); - void dataLeftPressed( const QPoint & pnt ); + void dataLeftPressed( const TQPoint & pnt ); void dataMiddlePressed( uint row, uint col ); - void dataMiddlePressed( const QPoint & pnt ); + void dataMiddlePressed( const TQPoint & pnt ); void dataRightPressed( uint row, uint col ); - void dataRightPressed( const QPoint & pnt ); + void dataRightPressed( const TQPoint & pnt ); void dataLeftReleased( uint row, uint col ); - void dataLeftReleased( const QPoint & pnt ); + void dataLeftReleased( const TQPoint & pnt ); void dataMiddleReleased( uint row, uint col ); - void dataMiddleReleased( const QPoint & pnt ); + void dataMiddleReleased( const TQPoint & pnt ); void dataRightReleased( uint row, uint col ); - void dataRightReleased( const QPoint & pnt ); + void dataRightReleased( const TQPoint & pnt ); void barsDisplayed( int barsDisplayed, int barsLeft ); protected: - virtual void paintEvent( QPaintEvent* event ); - virtual void mousePressEvent( QMouseEvent* event ); - virtual void mouseReleaseEvent( QMouseEvent* event ); - virtual void resizeEvent( QResizeEvent* event ); + virtual void paintEvent( TQPaintEvent* event ); + virtual void mousePressEvent( TQMouseEvent* event ); + virtual void mouseReleaseEvent( TQMouseEvent* event ); + virtual void resizeEvent( TQResizeEvent* event ); private: KDChartParams* _params; KDChartTableDataBase* _data; bool _activeData; bool _doubleBuffered; - QPixmap _buffer; + TQPixmap _buffer; KDChartDataRegion* _mousePressedOnRegion; KDChartDataRegionList _dataRegions; }; -- cgit v1.2.1