summaryrefslogtreecommitdiffstats
path: root/ksokoban
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:58:53 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:58:53 -0600
commit84ace1135cac57993b72fee7105b92def1638d32 (patch)
treeb8871eb76e3db4a062731b0ce7c99c24fac119e8 /ksokoban
parent97d1732e257f8700488d7ca1660ae7eba8fc6065 (diff)
downloadtdegames-84ace1135cac57993b72fee7105b92def1638d32.tar.gz
tdegames-84ace1135cac57993b72fee7105b92def1638d32.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 97d1732e257f8700488d7ca1660ae7eba8fc6065.
Diffstat (limited to 'ksokoban')
-rw-r--r--ksokoban/ImageData.cpp4
-rw-r--r--ksokoban/ModalLabel.cpp4
-rw-r--r--ksokoban/NEWS2
-rw-r--r--ksokoban/PlayField.cpp16
-rw-r--r--ksokoban/PlayField.h2
5 files changed, 14 insertions, 14 deletions
diff --git a/ksokoban/ImageData.cpp b/ksokoban/ImageData.cpp
index 22190469..76fd0f2b 100644
--- a/ksokoban/ImageData.cpp
+++ b/ksokoban/ImageData.cpp
@@ -163,10 +163,10 @@ ImageData::brighten(TQImage& img) {
void
ImageData::wall(TQPainter &p, int x, int y, int index, bool left, bool right) {
- if (left) p.drawPixmap(x, y, upperLarge(index-1), halfSize_);
+ if (left) p.tqdrawPixmap(x, y, upperLarge(index-1), halfSize_);
else p.drawPixmap(x, y, leftSmall(index));
- if (right) p.drawPixmap(x+halfSize_, y, upperLarge(index), 0, 0, halfSize_);
+ if (right) p.tqdrawPixmap(x+halfSize_, y, upperLarge(index), 0, 0, halfSize_);
else p.drawPixmap(x+halfSize_, y, rightSmall(index));
p.drawPixmap(x, y+halfSize_, lowerLarge(index));
diff --git a/ksokoban/ModalLabel.cpp b/ksokoban/ModalLabel.cpp
index c0ccbbad..560c4b9d 100644
--- a/ksokoban/ModalLabel.cpp
+++ b/ksokoban/ModalLabel.cpp
@@ -57,7 +57,7 @@ ModalLabel::ModalLabel(const TQString &text, TQWidget *parent,
if (width < 300) width = 300;
if (height < 75) height = 75;
- setAlignment (AlignCenter);
+ tqsetAlignment (AlignCenter);
setFrameStyle (TQFrame::Panel | TQFrame::Raised);
setLineWidth (4);
setFont (font);
@@ -65,7 +65,7 @@ ModalLabel::ModalLabel(const TQString &text, TQWidget *parent,
resize (width, height);
show ();
- TQWidgetList *list = TQApplication::allWidgets();
+ TQWidgetList *list = TQApplication::tqallWidgets();
TQWidgetListIt it( *list );
while (it.current()) {
it.current()->installEventFilter (this);
diff --git a/ksokoban/NEWS b/ksokoban/NEWS
index 6f1352ed..8c42ec6c 100644
--- a/ksokoban/NEWS
+++ b/ksokoban/NEWS
@@ -48,7 +48,7 @@ New features:
* Bookmarks
* Animation speed menu
-* Status bar
+* tqStatus bar
* Internationalisation
-------------------------------------------------------------------------------
diff --git a/ksokoban/PlayField.cpp b/ksokoban/PlayField.cpp
index 77c3b69b..c3fe57fe 100644
--- a/ksokoban/PlayField.cpp
+++ b/ksokoban/PlayField.cpp
@@ -599,7 +599,7 @@ PlayField::keyPressEvent(TQKeyEvent * e) {
case Key_X:
levelMap_->random();
levelChange();
- repaint(false);
+ tqrepaint(false);
break;
case Key_R:
@@ -620,7 +620,7 @@ PlayField::keyPressEvent(TQKeyEvent * e) {
break;
case Key_I:
history_->redo(levelMap_);
- repaint(false);
+ tqrepaint(false);
return;
break;
@@ -644,7 +644,7 @@ PlayField::keyPressEvent(TQKeyEvent * e) {
}
updateStepsXpm();
updatePushesXpm();
- repaint(false);
+ tqrepaint(false);
return;
break;
#endif
@@ -855,7 +855,7 @@ this level yet."), this);
level(levelMap_->level()+1);
levelChange();
- repaint(false);
+ tqrepaint(false);
}
void
@@ -868,7 +868,7 @@ the current collection."), this);
}
level(levelMap_->level()-1);
levelChange();
- repaint(false);
+ tqrepaint(false);
}
void
@@ -892,7 +892,7 @@ PlayField::restartLevel() {
level(levelMap_->level());
updateStepsXpm();
updatePushesXpm();
- repaint(false);
+ tqrepaint(false);
}
void
@@ -901,7 +901,7 @@ PlayField::changeCollection(LevelCollection *collection) {
levelMap_->changeCollection(collection);
levelChange();
//erase(collRect_);
- repaint(false);
+ tqrepaint(false);
}
void
@@ -1030,7 +1030,7 @@ PlayField::goToBookmark(Bookmark *bm) {
//updateLevelXpm();
updateStepsXpm();
updatePushesXpm();
- repaint(false);
+ tqrepaint(false);
}
bool
diff --git a/ksokoban/PlayField.h b/ksokoban/PlayField.h
index 3b6375b9..b4380033 100644
--- a/ksokoban/PlayField.h
+++ b/ksokoban/PlayField.h
@@ -26,7 +26,7 @@
#include <tqfontmetrics.h>
#include <tqpixmap.h>
#include <tqimage.h>
-#include <brush.h>
+#include <tqbrush.h>
#include "ImageData.h"
#include "LevelMap.h"