summaryrefslogtreecommitdiffstats
path: root/libkdchart/KDChartAxesPainter.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-05 06:00:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-05 06:00:29 +0000
commitfecb0e67b23e8b83ba7fc881bb57bc48c0852d62 (patch)
tree6b8614802f0d01b353bc9ba78aff2090846c198e /libkdchart/KDChartAxesPainter.h
parentdadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (diff)
downloadkmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.tar.gz
kmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.zip
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
Diffstat (limited to 'libkdchart/KDChartAxesPainter.h')
-rw-r--r--libkdchart/KDChartAxesPainter.h66
1 files changed, 33 insertions, 33 deletions
diff --git a/libkdchart/KDChartAxesPainter.h b/libkdchart/KDChartAxesPainter.h
index 29e955b..bae3eb5 100644
--- a/libkdchart/KDChartAxesPainter.h
+++ b/libkdchart/KDChartAxesPainter.h
@@ -29,14 +29,14 @@
#ifndef __KDCHARTAXESPAINTER_H__
#define __KDCHARTAXESPAINTER_H__
-#include <qpen.h>
-#include <qpainter.h>
+#include <tqpen.h>
+#include <tqpainter.h>
#include <KDChartPainter.h>
#include <KDChartTable.h>
#include <KDChartAxisParams.h>
-class QDateTime;
+class TQDateTime;
class KDChartParams;
class KDChartAxesPainter : public KDChartPainter
@@ -45,10 +45,10 @@ class KDChartAxesPainter : public KDChartPainter
KDChartAxesPainter( KDChartParams* params );
virtual ~KDChartAxesPainter();
- virtual void paintAxes( QPainter* painter,
+ virtual void paintAxes( TQPainter* painter,
KDChartTableDataBase* data );
- virtual void paintData( QPainter* painter,
+ virtual void paintData( TQPainter* painter,
KDChartTableDataBase* data,
bool paint2nd,
KDChartDataRegionList* regions );
@@ -66,8 +66,8 @@ class KDChartAxesPainter : public KDChartPainter
virtual int clipShiftUp( bool normalMode, double areaWidthP1000 ) const = 0;
// The actual, chart type specific drawing of the data.
- virtual void specificPaintData( QPainter* painter,
- const QRect& ourClipRect,
+ virtual void specificPaintData( TQPainter* painter,
+ const TQRect& ourClipRect,
KDChartTableDataBase* data,
KDChartDataRegionList* regions,
const KDChartAxisParams* axisPara,
@@ -86,7 +86,7 @@ class KDChartAxesPainter : public KDChartPainter
uint datasetEnd ) = 0;
virtual bool calculateAllAxesLabelTextsAndCalcValues(
- QPainter* painter,
+ TQPainter* painter,
KDChartTableDataBase* data,
double areaWidthP1000,
double areaHeightP1000,
@@ -112,8 +112,8 @@ class KDChartAxesPainter : public KDChartPainter
bool bAbscissaHasTrueAxisDtValues;
double dtLowPos;
double dtHighPos;
- QDateTime abscissaDtStart;
- QDateTime abscissaDtEnd;
+ TQDateTime abscissaDtStart;
+ TQDateTime abscissaDtEnd;
bool bScaleLessThanDay;
double abscissaDtSpan;
double abscissaDtPixelsPerScaleUnit;
@@ -127,19 +127,19 @@ class KDChartAxesPainter : public KDChartPainter
uint datasetStart,
uint datasetEnd,
double logWidth,
- const QRect& dataRect,
+ const TQRect& dataRect,
abscissaInfos& infos );
- static bool calculateAbscissaAxisValue( const QVariant& value,
+ static bool calculateAbscissaAxisValue( const TQVariant& value,
abscissaInfos& ai,
int colNumber,
double& xValue );
- static void saveDrawLine( QPainter& painter,
- QPoint pA,
- QPoint pZ,
- QPen pen );
+ static void saveDrawLine( TQPainter& painter,
+ TQPoint pA,
+ TQPoint pZ,
+ TQPen pen );
static void calculateLabelTexts(
- QPainter* painter,
+ TQPainter* painter,
const KDChartTableDataBase& data,
const KDChartParams& params,
uint axisNumber,
@@ -147,8 +147,8 @@ class KDChartAxesPainter : public KDChartPainter
double delimLen,
// start of return parameters
KDChartAxisParams::AxisPos& basicPos,
- QPoint& orig,
- QPoint& dest,
+ TQPoint& orig,
+ TQPoint& dest,
double& pXDeltaFactor,
double& pYDeltaFactor,
double& pXDelimDeltaFaktor,
@@ -164,8 +164,8 @@ class KDChartAxesPainter : public KDChartPainter
bool& isLogarithmic,
bool& isDateTime,
bool& autoDtLabels,
- QDateTime& dtLow,
- QDateTime& dtHigh,
+ TQDateTime& dtLow,
+ TQDateTime& dtHigh,
KDChartAxisParams::ValueScale& dtDeltaScale,
bool adjustTheValues = false,
double trueDelta = 0.0,
@@ -174,7 +174,7 @@ class KDChartAxesPainter : public KDChartPainter
const KDChartAxisParams& para,
double averageValueP1000,
KDChartAxisParams::AxisPos basicPos,
- const QPoint& orig,
+ const TQPoint& orig,
double delimLen,
uint nLabels,
// start of return parameters
@@ -184,22 +184,22 @@ class KDChartAxesPainter : public KDChartPainter
double& pTextsW,
double& pTextsH,
int& textAlign );
- static QString truncateBehindComma( const double nVal,
+ static TQString truncateBehindComma( const double nVal,
const int behindComma,
const double nDelta,
int& trueBehindComma );
- static QString applyLabelsFormat( const double nVal,
+ static TQString applyLabelsFormat( const double nVal,
int divPow10,
int behindComma,
double nDelta,
int& trueBehindComma,
KDChartEnums::NumberNotation notation,
- const QString& decimalPoint,
- const QString& thousandsPoint,
- const QString& prefix,
- const QString& postfix,
+ const TQString& decimalPoint,
+ const TQString& thousandsPoint,
+ const TQString& prefix,
+ const TQString& postfix,
int totalLen,
- const QChar& padFill,
+ const TQChar& padFill,
bool blockAlign );
static void calculateOrdinateFactors( const KDChartAxisParams& para,
bool bLogarithmic,
@@ -211,10 +211,10 @@ class KDChartAxesPainter : public KDChartPainter
double& nLow,
double& nHigh,
bool findNextRound = false );
- static void dtAddSecs( const QDateTime& org, const int secs, QDateTime& dest );
- static void dtAddDays( const QDateTime& org, const int days, QDateTime& dest );
- static void dtAddMonths( const QDateTime& org, const int months, QDateTime& dest );
- static void dtAddYears( const QDateTime& org, const int years, QDateTime& dest );
+ static void dtAddSecs( const TQDateTime& org, const int secs, TQDateTime& dest );
+ static void dtAddDays( const TQDateTime& org, const int days, TQDateTime& dest );
+ static void dtAddMonths( const TQDateTime& org, const int months, TQDateTime& dest );
+ static void dtAddYears( const TQDateTime& org, const int years, TQDateTime& dest );
};
#endif