summaryrefslogtreecommitdiffstats
path: root/libkdchart/KDDrawText.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/KDDrawText.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/KDDrawText.h')
-rw-r--r--libkdchart/KDDrawText.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/libkdchart/KDDrawText.h b/libkdchart/KDDrawText.h
index 64337e5..5fb9dbf 100644
--- a/libkdchart/KDDrawText.h
+++ b/libkdchart/KDDrawText.h
@@ -29,7 +29,7 @@
#ifndef __KDDRAWTEXT_H__
#define __KDDRAWTEXT_H__
-#include <qpainter.h>
+#include <tqpainter.h>
#ifdef linux
#include <values.h>
#endif
@@ -38,8 +38,8 @@
struct KDDrawTextRegionAndTrueRect
{
- QRegion region;
- QPoint pos;
+ TQRegion region;
+ TQPoint pos;
int x,y,width,height;
};
@@ -47,48 +47,48 @@ struct KDDrawTextRegionAndTrueRect
class KDDrawText
{
public:
- static void drawRotatedText( QPainter* painter,
+ static void drawRotatedText( TQPainter* painter,
float degrees,
- QPoint anchor,
- const QString& text,
- const QFont* font = 0,
- int align = Qt::AlignLeft | Qt::AlignTop,
- // useful for debugging of your layout:
+ TQPoint anchor,
+ const TQString& text,
+ const TQFont* font = 0,
+ int align = TQt::AlignLeft | TQt::AlignTop,
+ // useful for debugging of your tqlayout:
bool showAnchor = false,
- const QFontMetrics* fontMet = 0,
+ const TQFontMetrics* fontMet = 0,
bool noFirstrotate = false,
bool noBackrotate = false,
KDDrawTextRegionAndTrueRect* infos = 0,
bool optimizeOutputForScreen = false );
static KDDrawTextRegionAndTrueRect measureRotatedText(
- QPainter* painter,
+ TQPainter* painter,
float degrees,
- QPoint anchor,
- const QString& text,
- const QFont* font,
+ TQPoint anchor,
+ const TQString& text,
+ const TQFont* font,
int align,
- const QFontMetrics* fontMet,
+ const TQFontMetrics* fontMet,
bool noFirstrotate,
bool noBackrotate,
int addPercentOfHeightToRegion );
private:
- static void drawRotatedTxt( QPainter* painter,
+ static void drawRotatedTxt( TQPainter* painter,
bool optimizeOutputForScreen,
float degrees,
- QPoint anchor,
- const QString& text,
- const QFont* font = 0,
- int align = Qt::AlignLeft | Qt::AlignTop,
- // usefull for debugging of your layout:
+ TQPoint anchor,
+ const TQString& text,
+ const TQFont* font = 0,
+ int align = TQt::AlignLeft | TQt::AlignTop,
+ // usefull for debugging of your tqlayout:
bool showAnchor = false,
// speed-up parameters
// used internally by drawCircleText()
// to avoid duplicate calculation
int txtWidth = INT_MAX,
int txtHeight = INT_MAX,
- const QFontMetrics* fontMet = 0,
+ const TQFontMetrics* fontMet = 0,
// additional speed-up parameters used by KDChart
bool calculateOnly = false,
bool doNotCalculate= false,