From e654398e46e37abf457b2b1122ab898d2c51c49f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:43:15 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- noatun/modules/kjofol-skin/kjfont.h | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'noatun/modules/kjofol-skin/kjfont.h') diff --git a/noatun/modules/kjofol-skin/kjfont.h b/noatun/modules/kjofol-skin/kjfont.h index 4ea5319b..a40e7854 100644 --- a/noatun/modules/kjofol-skin/kjfont.h +++ b/noatun/modules/kjofol-skin/kjfont.h @@ -1,21 +1,21 @@ #ifndef KJFONT_H #define KJFONT_H -#include -#include -#include -#include +#include +#include +#include +#include class KJLoader; class KJFont { public: - KJFont(const QString &prefix, KJLoader *parent); + KJFont(const TQString &prefix, KJLoader *parent); // draw the string str to dev at position pos, within rectangle limit in relation to pos - QPixmap draw(const QCString &str, int wide, const QPoint &pt=QPoint(0,0)) const; - QPixmap draw(const QString &str, int wide, const QPoint &pt=QPoint(0,0)) const - { return draw(QCString(str.latin1()), wide, pt); } + TQPixmap draw(const TQCString &str, int wide, const TQPoint &pt=TQPoint(0,0)) const; + TQPixmap draw(const TQString &str, int wide, const TQPoint &pt=TQPoint(0,0)) const + { return draw(TQCString(str.latin1()), wide, pt); } int fontHeight() const {return mHeight;} int fontWidth() const {return mWidth;} @@ -26,24 +26,24 @@ public: void recalcSysFont(void); protected: - QPixmap drawSysFont(const QCString &s, int wide, const QPoint &pos=QPoint(0,0)) const; - QPixmap drawPixmapFont(const QCString &, int, const QPoint &pos=QPoint(0,0)) const; + TQPixmap drawSysFont(const TQCString &s, int wide, const TQPoint &pos=TQPoint(0,0)) const; + TQPixmap drawPixmapFont(const TQCString &, int, const TQPoint &pos=TQPoint(0,0)) const; - void drawCharacter(QPixmap *dev, QBitmap *devMask, const QPoint &to, char c) const; - QPoint charSource(char c) const; + void drawCharacter(TQPixmap *dev, TQBitmap *devMask, const TQPoint &to, char c) const; + TQPoint charSource(char c) const; private: - QPixmap mText; - QBitmap mTextMask; + TQPixmap mText; + TQBitmap mTextMask; QRgb mTransparentRGB; // this color will be transparent int mSpacing; int mWidth, mHeight; bool mTransparent; // indicates wether there's transparency const char *mString[3]; char mNullChar; - QFontMetrics *sysFontMetrics; - QFont sysFont; - QColor sysFontColor; + TQFontMetrics *sysFontMetrics; + TQFont sysFont; + TQColor sysFontColor; bool mUseSysFont; }; -- cgit v1.2.1