diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kchart/kdchart/KDChartTextPiece.h | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kchart/kdchart/KDChartTextPiece.h')
-rw-r--r-- | kchart/kdchart/KDChartTextPiece.h | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/kchart/kdchart/KDChartTextPiece.h b/kchart/kdchart/KDChartTextPiece.h index 16d5a1ba..adb176b2 100644 --- a/kchart/kdchart/KDChartTextPiece.h +++ b/kchart/kdchart/KDChartTextPiece.h @@ -29,26 +29,27 @@ #ifndef __KDCHARTTEXTPIECE_H__ #define __KDCHARTTEXTPIECE_H__ -#include <qstring.h> -#include <qfont.h> -#include <qregion.h> -#include <qpalette.h> -#include <qobject.h> +#include <tqstring.h> +#include <tqfont.h> +#include <tqregion.h> +#include <tqpalette.h> +#include <tqobject.h> #include <kdchart_export.h> -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; }; |