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/score.h | |
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/score.h')
-rw-r--r-- | kpacman/score.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/kpacman/score.h b/kpacman/score.h index 8f6a644..a6bc1de 100644 --- a/kpacman/score.h +++ b/kpacman/score.h @@ -6,14 +6,14 @@ #endif #include <kapp.h> -#include <qwidget.h> -#include <qstring.h> -#include <qpoint.h> -#include <qrect.h> -#include <qfile.h> +#include <ntqwidget.h> +#include <ntqstring.h> +#include <ntqpoint.h> +#include <ntqrect.h> +#include <ntqfile.h> -#include <qfileinfo.h> -#include <qdatetime.h> +#include <ntqfileinfo.h> +#include <ntqdatetime.h> #include "painter.h" #include "bitfont.h" @@ -22,11 +22,11 @@ #define minPlayerNameLength 3 #define highscoreName "highscore" -class Score : public QWidget +class Score : public TQWidget { Q_OBJECT public: - Score (QWidget *parent=0, const char *name=0, int scheme=-1, int mode=-1, Bitfont *font=0); + Score (TQWidget *parent=0, const char *name=0, int scheme=-1, int mode=-1, Bitfont *font=0); ~Score(); public slots: @@ -49,12 +49,12 @@ signals: void gameHighscores(); protected: - void timerEvent(QTimerEvent *); - void paintEvent(QPaintEvent *); - void keyPressEvent(QKeyEvent *); + void timerEvent(TQTimerEvent *); + void paintEvent(TQPaintEvent *); + void keyPressEvent(TQKeyEvent *); - void focusInEvent(QFocusEvent *) { ; } - void focusOutEvent(QFocusEvent *) { ; } + void focusInEvent(TQFocusEvent *) { ; } + void focusOutEvent(TQFocusEvent *) { ; } void confScheme(); void confTiming(bool defGroup=TRUE); @@ -62,11 +62,11 @@ protected: private: Bitfont *bitfont; - QRect rect(int col, float row, QString str, int align = AlignCenter); + TQRect rect(int col, float row, TQString str, int align = AlignCenter); int x(int col); int y(float row); - QString formatDate(QDate date); + TQString formatDate(TQDate date); /** * Ermittelt die zu benutzende "highscore"-Datei, in die auch geschrieben werden kann. @@ -75,7 +75,7 @@ private: * Wenn die systemweite "globale" Datei nicht beschrieben werden kann, wird mit einer * privaten Datei gearbeitet. */ - QFileInfo locateHighscoreFilePath(); + TQFileInfo locateHighscoreFilePath(); int cursorBlinkMS; int hallOfFameMS; @@ -92,12 +92,12 @@ private: int lastPlayer; int HighScore; int playerScore[maxPlayer]; - QString playerName[maxPlayer]; + TQString playerName[maxPlayer]; struct { int x; int y; - QChar chr; + TQChar chr; bool on; } cursor; @@ -107,15 +107,15 @@ private: struct { int points; int levels; - QTime duration; - QDateTime moment; - QString name; + TQTime duration; + TQDateTime moment; + TQString name; } hallOfFame[10]; - QFileInfo systemHighscoreFileInfo; - QFileInfo privateHighscoreFileInfo; + TQFileInfo systemHighscoreFileInfo; + TQFileInfo privateHighscoreFileInfo; - QFile highscoreFile; + TQFile highscoreFile; int scheme; int mode; |