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 /libksirtet/common | |
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 'libksirtet/common')
-rw-r--r-- | libksirtet/common/board.cpp | 4 | ||||
-rw-r--r-- | libksirtet/common/board.h | 2 | ||||
-rw-r--r-- | libksirtet/common/factory.h | 2 | ||||
-rw-r--r-- | libksirtet/common/field.cpp | 4 | ||||
-rw-r--r-- | libksirtet/common/field.h | 2 | ||||
-rw-r--r-- | libksirtet/common/inter.cpp | 10 | ||||
-rw-r--r-- | libksirtet/common/inter.h | 4 | ||||
-rw-r--r-- | libksirtet/common/misc_ui.cpp | 20 | ||||
-rw-r--r-- | libksirtet/common/misc_ui.h | 8 |
9 files changed, 28 insertions, 28 deletions
diff --git a/libksirtet/common/board.cpp b/libksirtet/common/board.cpp index 93851b87..7a0802ad 100644 --- a/libksirtet/common/board.cpp +++ b/libksirtet/common/board.cpp @@ -11,8 +11,8 @@ #include "commonprefs.h" -Board::Board(bool graphic, GiftPool *gp, TQWidget *tqparent) - : BaseBoard(graphic, tqparent), +Board::Board(bool graphic, GiftPool *gp, TQWidget *parent) + : BaseBoard(graphic, parent), _giftPool(gp), aiEngine(0) {} diff --git a/libksirtet/common/board.h b/libksirtet/common/board.h index 5f38df9e..77c9224e 100644 --- a/libksirtet/common/board.h +++ b/libksirtet/common/board.h @@ -13,7 +13,7 @@ class LIBKSIRTET_EXPORT Board : public BaseBoard Q_OBJECT TQ_OBJECT public: - Board(bool graphic, GiftPool *, TQWidget *tqparent); + Board(bool graphic, GiftPool *, TQWidget *parent); virtual ~Board(); void setType(bool computer); diff --git a/libksirtet/common/factory.h b/libksirtet/common/factory.h index 5cd0cdbf..2d02dcb2 100644 --- a/libksirtet/common/factory.h +++ b/libksirtet/common/factory.h @@ -25,7 +25,7 @@ class LIBKSIRTET_EXPORT CommonFactory : public BaseFactory const CommonBoardInfo &cbi; - virtual BaseField *createField(TQWidget *tqparent) = 0; + virtual BaseField *createField(TQWidget *parent) = 0; virtual AI *createAI() = 0; TQWidget *createAIConfig(); diff --git a/libksirtet/common/field.cpp b/libksirtet/common/field.cpp index ea6a3ffc..8b1d3f7b 100644 --- a/libksirtet/common/field.cpp +++ b/libksirtet/common/field.cpp @@ -19,8 +19,8 @@ #include "commonprefs.h" -Field::Field(TQWidget *tqparent) -: MPSimpleBoard(tqparent), BaseField(this) +Field::Field(TQWidget *parent) +: MPSimpleBoard(parent), BaseField(this) { // column 1 // score LCD diff --git a/libksirtet/common/field.h b/libksirtet/common/field.h index 69d11bfb..cfba3d41 100644 --- a/libksirtet/common/field.h +++ b/libksirtet/common/field.h @@ -20,7 +20,7 @@ class LIBKSIRTET_EXPORT Field : public MPSimpleBoard, public BaseField Q_OBJECT TQ_OBJECT public: - Field(TQWidget *tqparent); + Field(TQWidget *parent); public slots: void moveLeft(); diff --git a/libksirtet/common/inter.cpp b/libksirtet/common/inter.cpp index e81f7347..c5630108 100644 --- a/libksirtet/common/inter.cpp +++ b/libksirtet/common/inter.cpp @@ -33,8 +33,8 @@ const int Interface::KEYCODE_TWO[Nb_Actions] = { Key_F, Key_G, Key_D, Key_Space, Key_E, Key_C, SHIFT+Key_F, SHIFT+Key_G }; -Interface::Interface(const MPGameInfo &gi, TQWidget *tqparent) - : MPSimpleInterface(gi, Nb_Actions, ACTION_DATA, tqparent) +Interface::Interface(const MPGameInfo &gi, TQWidget *parent) + : MPSimpleInterface(gi, Nb_Actions, ACTION_DATA, parent) { setDefaultKeycodes(1, 0, KEYCODE_ONE); setDefaultKeycodes(2, 0, KEYCODE_TWO); @@ -91,10 +91,10 @@ void Interface::_sendPlayData() } } -void Interface::_showHighscores(TQWidget *tqparent) +void Interface::_showHighscores(TQWidget *parent) { - if ( !server() || nbPlayers()!=1 ) _scores.show(tqparent); - else BaseInterface::_showHighscores(tqparent); + if ( !server() || nbPlayers()!=1 ) _scores.show(parent); + else BaseInterface::_showHighscores(parent); } void Interface::_showGameOverData() diff --git a/libksirtet/common/inter.h b/libksirtet/common/inter.h index fb8a8349..daffc3e9 100644 --- a/libksirtet/common/inter.h +++ b/libksirtet/common/inter.h @@ -17,7 +17,7 @@ class LIBKSIRTET_EXPORT Interface : public MPSimpleInterface, public BaseInterfa Q_OBJECT TQ_OBJECT public: - Interface(const MPGameInfo &, TQWidget *tqparent); + Interface(const MPGameInfo &, TQWidget *parent); signals: void settingsChanged(); @@ -28,7 +28,7 @@ public slots: void settingsChangedSlot() { emit settingsChanged(); } protected: - void _showHighscores(TQWidget *tqparent); + void _showHighscores(TQWidget *parent); private: TQMemArray<ClientPlayData> _data; diff --git a/libksirtet/common/misc_ui.cpp b/libksirtet/common/misc_ui.cpp index 6e9cffec..6638e67a 100644 --- a/libksirtet/common/misc_ui.cpp +++ b/libksirtet/common/misc_ui.cpp @@ -24,8 +24,8 @@ const uint LED_HEIGHT = 15; const uint LED_SPACING = 5; /*****************************************************************************/ -ShowNextPiece::ShowNextPiece(BaseBoard *board, TQWidget *tqparent) - : FixedCanvasView(tqparent, "show_next_piece") +ShowNextPiece::ShowNextPiece(BaseBoard *board, TQWidget *parent) + : FixedCanvasView(parent, "show_next_piece") { setCanvas(board->next()); setFrameStyle(TQFrame::Panel | TQFrame::Sunken); @@ -33,8 +33,8 @@ ShowNextPiece::ShowNextPiece(BaseBoard *board, TQWidget *tqparent) } /*****************************************************************************/ -Shadow::Shadow(BaseBoard *board, TQWidget *tqparent) - : TQWidget(tqparent, "shadow"), _xOffset(board->frameWidth()), +Shadow::Shadow(BaseBoard *board, TQWidget *parent) + : TQWidget(parent, "shadow"), _xOffset(board->frameWidth()), _board(board), _show(false) { KZoomMainWindow::addWidget(this); @@ -81,8 +81,8 @@ void Shadow::paintEvent(TQPaintEvent *) class Led : public TQWidget { public: - Led(const TQColor &c, TQWidget *tqparent) - : TQWidget(tqparent), col(c), _on(FALSE) {} + Led(const TQColor &c, TQWidget *parent) + : TQWidget(parent), col(c), _on(FALSE) {} TQSizePolicy sizePolicy() const { return TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed); } @@ -105,8 +105,8 @@ class Led : public TQWidget bool _on; }; -GiftPool::GiftPool(TQWidget *tqparent) - : TQHBox(tqparent, "gift_pool"), nb(0), ready(false) +GiftPool::GiftPool(TQWidget *parent) + : TQHBox(parent, "gift_pool"), nb(0), ready(false) { setSpacing(LED_SPACING); leds.resize(cfactory->cbi.nbGiftLeds); @@ -171,10 +171,10 @@ void GiftPool::reset() } //----------------------------------------------------------------------------- -PlayerProgress::PlayerProgress(BaseBoard *board, TQWidget *tqparent, +PlayerProgress::PlayerProgress(BaseBoard *board, TQWidget *parent, const char *name) : KGameProgress(0, board->matrix().height(), 0, Qt::Vertical, - tqparent, name), _board(board) + parent, name), _board(board) { setBackgroundColor(lightGray); setTextEnabled(false); diff --git a/libksirtet/common/misc_ui.h b/libksirtet/common/misc_ui.h index 61b87b96..708bd484 100644 --- a/libksirtet/common/misc_ui.h +++ b/libksirtet/common/misc_ui.h @@ -16,7 +16,7 @@ class LIBKSIRTET_EXPORT ShowNextPiece : public FixedCanvasView Q_OBJECT TQ_OBJECT public: - ShowNextPiece(BaseBoard *, TQWidget *tqparent); + ShowNextPiece(BaseBoard *, TQWidget *parent); }; /*****************************************************************************/ @@ -25,7 +25,7 @@ class LIBKSIRTET_EXPORT Shadow : public TQWidget Q_OBJECT TQ_OBJECT public: - Shadow(BaseBoard *, TQWidget *tqparent); + Shadow(BaseBoard *, TQWidget *parent); virtual TQSize tqsizeHint() const; virtual TQSizePolicy sizePolicy() const; @@ -47,7 +47,7 @@ class LIBKSIRTET_EXPORT GiftPool : public TQHBox Q_OBJECT TQ_OBJECT public: - GiftPool(TQWidget *tqparent); + GiftPool(TQWidget *parent); virtual TQSize tqsizeHint() const; virtual TQSizePolicy sizePolicy() const; @@ -73,7 +73,7 @@ class LIBKSIRTET_EXPORT PlayerProgress : public KGameProgress Q_OBJECT TQ_OBJECT public: - PlayerProgress(BaseBoard *board, TQWidget *tqparent = 0, const char *name = 0); + PlayerProgress(BaseBoard *board, TQWidget *parent = 0, const char *name = 0); virtual TQSize tqsizeHint() const; virtual TQSizePolicy sizePolicy() const; |