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/KDChart.h | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'libkdchart/KDChart.h') diff --git a/libkdchart/KDChart.h b/libkdchart/KDChart.h index 4d4944e..1f91f25 100644 --- a/libkdchart/KDChart.h +++ b/libkdchart/KDChart.h @@ -29,9 +29,9 @@ #ifndef __KDCHART_H__ #define __KDCHART_H__ -#ifdef QSA -#include -#endif // QSA +#ifdef TQSA +#include +#endif // TQSA #include "KDChartGlobal.h" #include "KDChartTable.h" @@ -41,15 +41,15 @@ /** \file KDChart.h \brief Definition of a single entry-point to the charting engine for - applications that wish to provide their own QPainter. + applications that wish to provide their own TQPainter. - It is not useful to instantiate the KDChart class as it only contains + It is not useful to instantiate the KDChart class as it only tqcontains static methods. */ class KDChartPainter; -class QPainter; -class QSInterpreter; +class TQPainter; +class TQSInterpreter; class KDCHART_EXPORT KDChart @@ -57,26 +57,26 @@ class KDCHART_EXPORT KDChart friend void cleanupPainter(); public: - static bool setupGeometry( QPainter* painter, + static bool setupGeometry( TQPainter* painter, KDChartParams* params, KDChartTableDataBase* data, - const QRect& drawRect ); + const TQRect& drawRect ); - static bool painterToDrawRect( QPainter* painter, QRect& drawRect ); + static bool painterToDrawRect( TQPainter* painter, TQRect& drawRect ); - static void paint( QPainter*, KDChartParams*, KDChartTableDataBase*, + static void paint( TQPainter*, KDChartParams*, KDChartTableDataBase*, KDChartDataRegionList* regions = 0, - const QRect* rect = 0, + const TQRect* rect = 0, bool mustCalculateGeometry = true ); - static void print( QPainter*, KDChartParams*, KDChartTableDataBase*, + static void print( TQPainter*, KDChartParams*, KDChartTableDataBase*, KDChartDataRegionList* regions = 0, - const QRect* rect = 0, + const TQRect* rect = 0, bool mustCalculateGeometry = true ); -#ifdef QSA - static void initInterpreter( QSInterpreter* ); - static void initProject( QSProject* ); +#ifdef TQSA + static void initInterpreter( TQSInterpreter* ); + static void initProject( TQSProject* ); #endif private: @@ -88,9 +88,9 @@ class KDCHART_EXPORT KDChart static KDChartParams::ChartType cpainterType; static KDChartParams::ChartType cpainterType2; -#ifdef QSA - static QString globals(); - static void privateInitInterpreter( QSInterpreter* interpreter ); +#ifdef TQSA + static TQString globals(); + static void privateInitInterpreter( TQSInterpreter* interpreter ); #endif }; -- cgit v1.2.3