summaryrefslogtreecommitdiffstats
path: root/kchart/kdchart/KDDrawText.h
diff options
context:
space:
mode:
Diffstat (limited to 'kchart/kdchart/KDDrawText.h')
-rw-r--r--kchart/kdchart/KDDrawText.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/kchart/kdchart/KDDrawText.h b/kchart/kdchart/KDDrawText.h
index 64337e5a..5fb9dbfd 100644
--- a/kchart/kdchart/KDDrawText.h
+++ b/kchart/kdchart/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,