diff options
| author | gregory guy <gregory-tde@laposte.net> | 2020-08-17 20:03:11 +0200 |
|---|---|---|
| committer | gregory guy <gregory-tde@laposte.net> | 2020-08-17 20:03:11 +0200 |
| commit | 503fddb48f2229ecc6ed6930a99c4d740ff979e5 (patch) | |
| tree | 81206d9572927fd636b43a00005808cec6c0ce3e /kpacman/bitfont.cpp | |
| parent | e0031ac458d4f414ae583a709d48c4cb0f14b09e (diff) | |
| download | tdepacman-503fddb48f2229ecc6ed6930a99c4d740ff979e5.tar.gz tdepacman-503fddb48f2229ecc6ed6930a99c4d740ff979e5.zip | |
Second step, convert to tqt3 libraries.
Signed-off-by: gregory guy <gregory-tde@laposte.net>
Diffstat (limited to 'kpacman/bitfont.cpp')
| -rw-r--r-- | kpacman/bitfont.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kpacman/bitfont.cpp b/kpacman/bitfont.cpp index 40581c8..91b4baa 100644 --- a/kpacman/bitfont.cpp +++ b/kpacman/bitfont.cpp @@ -1,6 +1,6 @@ #include "bitfont.h" -Bitfont::Bitfont(QString fontname, uchar firstChar, uchar lastChar) +Bitfont::Bitfont(TQString fontname, uchar firstChar, uchar lastChar) { if (!fontname.isEmpty()) font.load(fontname); @@ -16,15 +16,15 @@ Bitfont::Bitfont(QString fontname, uchar firstChar, uchar lastChar) } } -QRect Bitfont::rect(QString str) +TQRect Bitfont::rect(TQString str) { - return QRect(0, 0, str.length()*fontWidth, fontHeight); + return TQRect(0, 0, str.length()*fontWidth, fontHeight); } -QPixmap Bitfont::text(QString str, QColor fg, QColor bg) +TQPixmap Bitfont::text(TQString str, TQColor fg, TQColor bg) { - QPixmap FG(str.length()*fontWidth, fontHeight); - QBitmap MASK(str.length()*fontWidth, fontHeight, TRUE); + TQPixmap FG(str.length()*fontWidth, fontHeight); + TQBitmap MASK(str.length()*fontWidth, fontHeight, TRUE); const uchar *s = (const uchar *) str.data(); for (uint i = 0; i < str.length(); i++) { @@ -42,7 +42,7 @@ QPixmap Bitfont::text(QString str, QColor fg, QColor bg) FG.setMask(MASK); if (bg.isValid()) { - QPixmap BG(str.length()*fontWidth, fontHeight); + TQPixmap BG(str.length()*fontWidth, fontHeight); BG.fill(bg); bitBlt(&BG, 0, 0, &FG); return BG; |
