summaryrefslogtreecommitdiffstats
path: root/libksirtet/base
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commita13e26c2f1eb3c5be81acf4f571dd4bafac10199 (patch)
tree1f1d3e407ae668b1448847970b2f1b626083faf6 /libksirtet/base
parent24c5cdc2737fe0044b11a12359606973eb93fc0b (diff)
downloadtdegames-a13e26c2f1eb3c5be81acf4f571dd4bafac10199.tar.gz
tdegames-a13e26c2f1eb3c5be81acf4f571dd4bafac10199.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libksirtet/base')
-rw-r--r--libksirtet/base/board.cpp8
-rw-r--r--libksirtet/base/board.h4
-rw-r--r--libksirtet/base/factory.h4
-rw-r--r--libksirtet/base/field.cpp8
-rw-r--r--libksirtet/base/field.h2
-rw-r--r--libksirtet/base/inter.cpp8
-rw-r--r--libksirtet/base/inter.h4
7 files changed, 19 insertions, 19 deletions
diff --git a/libksirtet/base/board.cpp b/libksirtet/base/board.cpp
index 0a6d37f1..95293387 100644
--- a/libksirtet/base/board.cpp
+++ b/libksirtet/base/board.cpp
@@ -12,8 +12,8 @@
using namespace KGrid2D;
//-----------------------------------------------------------------------------
-FixedCanvasView::FixedCanvasView(TQWidget *tqparent, const char *name)
- : TQCanvasView(tqparent, name, WNoAutoErase)
+FixedCanvasView::FixedCanvasView(TQWidget *parent, const char *name)
+ : TQCanvasView(parent, name, WNoAutoErase)
{}
TQSize FixedCanvasView::tqsizeHint() const
@@ -35,8 +35,8 @@ const BaseBoard::DirectionData BaseBoard::DIRECTION_DATA[Nb_Direction] = {
{ SquareBase::Up, Down }
};
-BaseBoard::BaseBoard(bool graphic, TQWidget *tqparent)
-: FixedCanvasView(tqparent, "board"),
+BaseBoard::BaseBoard(bool graphic, TQWidget *parent)
+: FixedCanvasView(parent, "board"),
GenericTetris(bfactory->bbi.width, bfactory->bbi.height,
bfactory->bbi.withPieces, graphic),
state(GameOver), timer(this), sequences(0), main(0), _next(0),
diff --git a/libksirtet/base/board.h b/libksirtet/base/board.h
index e65206f8..b525ee5b 100644
--- a/libksirtet/base/board.h
+++ b/libksirtet/base/board.h
@@ -17,7 +17,7 @@ class KDE_EXPORT FixedCanvasView : public TQCanvasView
Q_OBJECT
TQ_OBJECT
public:
- FixedCanvasView(TQWidget *tqparent = 0, const char *name = 0);
+ FixedCanvasView(TQWidget *parent = 0, const char *name = 0);
virtual TQSize tqsizeHint() const;
@@ -40,7 +40,7 @@ class KDE_EXPORT BaseBoard : public FixedCanvasView, public GenericTetris
static const DirectionData DIRECTION_DATA[Nb_Direction];
public:
- BaseBoard(bool graphic, TQWidget *tqparent);
+ BaseBoard(bool graphic, TQWidget *parent);
virtual ~BaseBoard();
void copy(const GenericTetris &);
diff --git a/libksirtet/base/factory.h b/libksirtet/base/factory.h
index 7df5574d..b772adb7 100644
--- a/libksirtet/base/factory.h
+++ b/libksirtet/base/factory.h
@@ -43,8 +43,8 @@ class KDE_EXPORT BaseFactory
const MainData &mainData;
const BaseBoardInfo &bbi;
- virtual BaseBoard *createBoard(bool graphic, TQWidget *tqparent) = 0;
- virtual BaseInterface *createInterface(TQWidget *tqparent) = 0;
+ virtual BaseBoard *createBoard(bool graphic, TQWidget *parent) = 0;
+ virtual BaseInterface *createInterface(TQWidget *parent) = 0;
virtual TQWidget *createAppearanceConfig();
virtual TQWidget *createColorConfig();
diff --git a/libksirtet/base/field.cpp b/libksirtet/base/field.cpp
index 6e35faf5..5f7cf10d 100644
--- a/libksirtet/base/field.cpp
+++ b/libksirtet/base/field.cpp
@@ -93,7 +93,7 @@ void BaseField::setMessage(const TQString &label, ButtonType type)
const char *slot = (type==ResumeButton ? TQT_SLOT(pause())
: TQT_SLOT(start()));
_button->connect(_button, TQT_SIGNAL(clicked()),
- _widget->tqparent(), slot);
+ _widget->parent(), slot);
_boardLayout->addWidget(_button, 0, TQt::AlignCenter);
_button->show();
}
@@ -135,10 +135,10 @@ void BaseField::stop(bool gameover)
setMessage(msg, button);
}
-void BaseField::gameOver(const KExtHighscore::Score &score, TQWidget *tqparent)
+void BaseField::gameOver(const KExtHighscore::Score &score, TQWidget *parent)
{
- KNotifyClient::event(tqparent->winId(), "game over", i18n("Game Over"));
- KExtHighscore::submitScore(score, tqparent);
+ KNotifyClient::event(parent->winId(), "game over", i18n("Game Over"));
+ KExtHighscore::submitScore(score, parent);
}
void BaseField::scoreUpdated()
diff --git a/libksirtet/base/field.h b/libksirtet/base/field.h
index a60173bb..e30e0bdd 100644
--- a/libksirtet/base/field.h
+++ b/libksirtet/base/field.h
@@ -22,7 +22,7 @@ class KDE_EXPORT BaseField
virtual ~BaseField() {}
virtual KExtHighscore::Score currentScore() const = 0;
- static void gameOver(const KExtHighscore::Score &, TQWidget *tqparent);
+ static void gameOver(const KExtHighscore::Score &, TQWidget *parent);
virtual void setArcade();
bool isArcade() const;
diff --git a/libksirtet/base/inter.cpp b/libksirtet/base/inter.cpp
index c573ef78..658e7c47 100644
--- a/libksirtet/base/inter.cpp
+++ b/libksirtet/base/inter.cpp
@@ -3,13 +3,13 @@
#include <kexthighscore.h>
-void BaseInterface::showHighscores(TQWidget *tqparent)
+void BaseInterface::showHighscores(TQWidget *parent)
{
if ( !_isPaused() ) _pause();
- _showHighscores(tqparent);
+ _showHighscores(parent);
}
-void BaseInterface::_showHighscores(TQWidget *tqparent)
+void BaseInterface::_showHighscores(TQWidget *parent)
{
- KExtHighscore::show(tqparent);
+ KExtHighscore::show(parent);
}
diff --git a/libksirtet/base/inter.h b/libksirtet/base/inter.h
index 21c81db0..3bf394db 100644
--- a/libksirtet/base/inter.h
+++ b/libksirtet/base/inter.h
@@ -14,10 +14,10 @@ public:
virtual void _pause() = 0;
virtual bool _isPaused() const = 0;
- void showHighscores(TQWidget *tqparent);
+ void showHighscores(TQWidget *parent);
protected:
- virtual void _showHighscores(TQWidget *tqparent);
+ virtual void _showHighscores(TQWidget *parent);
};
#endif