summaryrefslogtreecommitdiffstats
path: root/libkdchart/KDChartWidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'libkdchart/KDChartWidget.h')
-rw-r--r--libkdchart/KDChartWidget.h53
1 files changed, 27 insertions, 26 deletions
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 <KDChartGlobal.h>
#include <KDChartTable.h>
#include <KDChartDataRegion.h>
-#include <qwidget.h>
-#include <qscrollview.h>
-#include <qpixmap.h>
+#include <tqwidget.h>
+#include <tqscrollview.h>
+#include <tqpixmap.h>
/**
\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;
};