diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | a13e26c2f1eb3c5be81acf4f571dd4bafac10199 (patch) | |
tree | 1f1d3e407ae668b1448847970b2f1b626083faf6 /ksokoban | |
parent | 24c5cdc2737fe0044b11a12359606973eb93fc0b (diff) | |
download | tdegames-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 'ksokoban')
-rw-r--r-- | ksokoban/ModalLabel.cpp | 10 | ||||
-rw-r--r-- | ksokoban/ModalLabel.h | 4 | ||||
-rw-r--r-- | ksokoban/PlayField.cpp | 4 | ||||
-rw-r--r-- | ksokoban/PlayField.h | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/ksokoban/ModalLabel.cpp b/ksokoban/ModalLabel.cpp index 47d4c49b..560c4b9d 100644 --- a/ksokoban/ModalLabel.cpp +++ b/ksokoban/ModalLabel.cpp @@ -28,9 +28,9 @@ #include "ModalLabel.moc" -ModalLabel::ModalLabel(const TQString &text, TQWidget *tqparent, +ModalLabel::ModalLabel(const TQString &text, TQWidget *parent, const char *name, WFlags f) - : TQLabel(text, tqparent, name, f) { + : TQLabel(text, parent, name, f) { TQFont font(KGlobalSettings::generalFont().family(), 24, TQFont::Bold); TQFontMetrics fontMet(font); @@ -61,7 +61,7 @@ ModalLabel::ModalLabel(const TQString &text, TQWidget *tqparent, setFrameStyle (TQFrame::Panel | TQFrame::Raised); setLineWidth (4); setFont (font); - move (tqparent->width ()/2 - width/2, tqparent->height ()/2 - height/2); + move (parent->width ()/2 - width/2, parent->height ()/2 - height/2); resize (width, height); show (); @@ -107,9 +107,9 @@ ModalLabel::eventFilter (TQObject *, TQEvent *e) { } void -ModalLabel::message (const TQString &text, TQWidget *tqparent) { +ModalLabel::message (const TQString &text, TQWidget *parent) { KApplication *app = KApplication::kApplication (); - ModalLabel cl (text, tqparent); + ModalLabel cl (text, parent); while (!cl.completed_) app->processOneEvent (); } diff --git a/ksokoban/ModalLabel.h b/ksokoban/ModalLabel.h index cb4420cc..687df563 100644 --- a/ksokoban/ModalLabel.h +++ b/ksokoban/ModalLabel.h @@ -26,14 +26,14 @@ class ModalLabel : public TQLabel { Q_OBJECT TQ_OBJECT public: - static void message (const TQString &text, TQWidget *tqparent); + static void message (const TQString &text, TQWidget *parent); void timerEvent (TQTimerEvent *); bool eventFilter (TQObject *, TQEvent *); bool completed_; protected: - ModalLabel (const TQString &text, TQWidget *tqparent, const char *name=0, WFlags f=0); + ModalLabel (const TQString &text, TQWidget *parent, const char *name=0, WFlags f=0); }; diff --git a/ksokoban/PlayField.cpp b/ksokoban/PlayField.cpp index 68b97f76..c3fe57fe 100644 --- a/ksokoban/PlayField.cpp +++ b/ksokoban/PlayField.cpp @@ -45,8 +45,8 @@ #include "PlayField.moc" -PlayField::PlayField(TQWidget *tqparent, const char *name, WFlags f) - : TQWidget(tqparent, name, f|WResizeNoErase), imageData_(0), lastLevel_(-1), +PlayField::PlayField(TQWidget *parent, const char *name, WFlags f) + : TQWidget(parent, name, f|WResizeNoErase), imageData_(0), lastLevel_(-1), moveSequence_(0), moveInProgress_(false), dragInProgress_(false), xOffs_(0), yOffs_(0), wheelDelta_(0), diff --git a/ksokoban/PlayField.h b/ksokoban/PlayField.h index 161c49d0..b4380033 100644 --- a/ksokoban/PlayField.h +++ b/ksokoban/PlayField.h @@ -45,7 +45,7 @@ class PlayField : public TQWidget { Q_OBJECT TQ_OBJECT public: - PlayField(TQWidget *tqparent, const char *name=0, WFlags f=0); + PlayField(TQWidget *parent, const char *name=0, WFlags f=0); ~PlayField (); bool canMoveNow(); |