summaryrefslogtreecommitdiffstats
path: root/ksmiletris/screenwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksmiletris/screenwidget.cpp')
-rw-r--r--ksmiletris/screenwidget.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/ksmiletris/screenwidget.cpp b/ksmiletris/screenwidget.cpp
index 0080aadd..d8e87f4c 100644
--- a/ksmiletris/screenwidget.cpp
+++ b/ksmiletris/screenwidget.cpp
@@ -25,29 +25,29 @@ this software.
#include <kapplication.h>
#include <kstandarddirs.h>
-#include <qframe.h>
-#include <qpainter.h>
-#include <qpixmap.h>
+#include <tqframe.h>
+#include <tqpainter.h>
+#include <tqpixmap.h>
#include "ksmiletris.h"
#include "screenwidget.h"
-ScreenWidget::ScreenWidget(QPixmap *s, bool *game, bool *pause,
- QWidget *parent, const char *name)
- : QFrame(parent, name)
+ScreenWidget::ScreenWidget(TQPixmap *s, bool *game, bool *pause,
+ TQWidget *parent, const char *name)
+ : TQFrame(parent, name)
{
in_game = game;
in_pause = pause;
sprites = s;
- setFrameStyle(QFrame::Box | QFrame::Raised);
+ setFrameStyle(TQFrame::Box | TQFrame::Raised);
setLineWidth(2);
setMidLineWidth(1);
resize(scr_width * sprite_width + 10, scr_height * sprite_height + 10);
}
-void ScreenWidget::drawContents(QPainter *p)
+void ScreenWidget::drawContents(TQPainter *p)
{
- QRect r = contentsRect();
+ TQRect r = contentsRect();
if (!*in_game) {
p->fillRect(r, black);
@@ -61,7 +61,7 @@ void ScreenWidget::drawContents(QPainter *p)
sprites[screen_sprites[y*scr_width + x]]);
if (*in_pause) {
- QPixmap pause(locate("appdata", "data/pause.bmp"));
+ TQPixmap pause(locate("appdata", "data/pause.bmp"));
p->drawPixmap((width()-pause.width())/2,
(height()-pause.height())/2, pause);
}