From 84ace1135cac57993b72fee7105b92def1638d32 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 16 Dec 2011 09:58:53 -0600 Subject: Revert "Rename a number of old tq methods that are no longer tq specific" This reverts commit 97d1732e257f8700488d7ca1660ae7eba8fc6065. --- ksokoban/ImageData.cpp | 4 ++-- ksokoban/ModalLabel.cpp | 4 ++-- ksokoban/NEWS | 2 +- ksokoban/PlayField.cpp | 16 ++++++++-------- ksokoban/PlayField.h | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) (limited to 'ksokoban') 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 #include #include -#include +#include #include "ImageData.h" #include "LevelMap.h" -- cgit v1.2.1