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/KDChartTextPiece.h | 51 ++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 25 deletions(-) (limited to 'libkdchart/KDChartTextPiece.h') diff --git a/libkdchart/KDChartTextPiece.h b/libkdchart/KDChartTextPiece.h index 16d5a1b..adb176b 100644 --- a/libkdchart/KDChartTextPiece.h +++ b/libkdchart/KDChartTextPiece.h @@ -29,26 +29,27 @@ #ifndef __KDCHARTTEXTPIECE_H__ #define __KDCHARTTEXTPIECE_H__ -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include -class QBrush; -class QPainter; -class QSimpleRichText; -class QFontMetrics; +class TQBrush; +class TQPainter; +class TQSimpleRichText; +class TQFontMetrics; -class KDCHART_EXPORT KDChartTextPiece :public QObject +class KDCHART_EXPORT KDChartTextPiece :public TQObject { Q_OBJECT + TQ_OBJECT public: KDChartTextPiece(); - KDChartTextPiece( const QString& text, const QFont& font ); - KDChartTextPiece( QPainter* painter, const QString& text, const QFont& font ); + KDChartTextPiece( const TQString& text, const TQFont& font ); + KDChartTextPiece( TQPainter* painter, const TQString& text, const TQFont& font ); virtual ~KDChartTextPiece(); /** Copy the settings of text piece \c source into this box. @@ -72,29 +73,29 @@ class KDCHART_EXPORT KDChartTextPiece :public QObject const KDChartTextPiece* clone() const; private: - KDChartTextPiece( const KDChartTextPiece& ) : QObject(0) {} + KDChartTextPiece( const KDChartTextPiece& ) : TQObject(0) {} public slots: virtual int width() const; virtual int height() const; virtual int fontLeading() const; - virtual QRect rect( QPainter *p, const QRect& clipRect) const; - virtual void draw( QPainter *p, int x, int y, const QRect& clipRect, - const QColor& color, const QBrush* paper = 0 ) const; - virtual void draw( QPainter *p, int x, int y, const QRegion& clipRegion, - const QColor& color, const QBrush* paper = 0 ) const; - - QString text() const; - QFont font() const; + virtual TQRect rect( TQPainter *p, const TQRect& clipRect) const; + virtual void draw( TQPainter *p, int x, int y, const TQRect& clipRect, + const TQColor& color, const TQBrush* paper = 0 ) const; + virtual void draw( TQPainter *p, int x, int y, const TQRegion& clipRegion, + const TQColor& color, const TQBrush* paper = 0 ) const; + + TQString text() const; + TQFont font() const; bool isRichText() const; protected: bool _isRichText; - QSimpleRichText* _richText; // used when _isRichText == true - QString _text; // used when _isRichText == false - QFont _font; // used when _isRichText == false - QFontMetrics* _metrics; + TQSimpleRichText* _richText; // used when _isRichText == true + TQString _text; // used when _isRichText == false + TQFont _font; // used when _isRichText == false + TQFontMetrics* _metrics; bool _dirtyMetrics; }; -- cgit v1.2.1