diff options
author | Timothy Pearson <[email protected]> | 2011-12-18 18:31:10 -0600 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2012-06-04 01:10:52 +0200 |
commit | 9e8c9cf72cdda55e3c96c7ef072c3358061d53c9 (patch) | |
tree | 668cc8f756c0cac76b39b63bc1f09115015a10a5 /libksirtet/common/misc_ui.cpp | |
parent | 7cfcd74800487ecb6246597fdc559ca8baf2c4da (diff) | |
download | tdegames-9e8c9cf72cdda55e3c96c7ef072c3358061d53c9.tar.gz tdegames-9e8c9cf72cdda55e3c96c7ef072c3358061d53c9.zip |
Rename old tq methods that no longer need a unique name
(cherry picked from commit 0e2b76239f354a9eead0b4e37d86d390ec57ffa9)
Diffstat (limited to 'libksirtet/common/misc_ui.cpp')
-rw-r--r-- | libksirtet/common/misc_ui.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libksirtet/common/misc_ui.cpp b/libksirtet/common/misc_ui.cpp index 6638e67a..f6426a4d 100644 --- a/libksirtet/common/misc_ui.cpp +++ b/libksirtet/common/misc_ui.cpp @@ -41,7 +41,7 @@ Shadow::Shadow(BaseBoard *board, TQWidget *parent) connect(board, TQT_SIGNAL(updatePieceConfigSignal()), TQT_SLOT(update())); } -TQSize Shadow::tqsizeHint() const +TQSize Shadow::sizeHint() const { return TQSize(_xOffset + _board->matrix().width() * BasePrefs::blockSize(), SHADOW_HEIGHT); @@ -86,7 +86,7 @@ class Led : public TQWidget TQSizePolicy sizePolicy() const { return TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed); } - TQSize tqsizeHint() const { return TQSize(LED_WIDTH, LED_HEIGHT); } + TQSize sizeHint() const { return TQSize(LED_WIDTH, LED_HEIGHT); } void on() { if (!_on) { _on = TRUE; tqrepaint(); } } void off() { if (_on) {_on = FALSE; tqrepaint(); } } @@ -114,9 +114,9 @@ GiftPool::GiftPool(TQWidget *parent) leds.insert(i, new Led(yellow, this)); } -TQSize GiftPool::tqsizeHint() const +TQSize GiftPool::sizeHint() const { - TQSize s = (leds.size() ? leds[0]->tqsizeHint() : TQSize()); + TQSize s = (leds.size() ? leds[0]->sizeHint() : TQSize()); return TQSize((s.width()+LED_SPACING)*leds.size()-LED_SPACING, s.height()); } @@ -182,7 +182,7 @@ PlayerProgress::PlayerProgress(BaseBoard *board, TQWidget *parent, KZoomMainWindow::addWidget(this); } -TQSize PlayerProgress::tqsizeHint() const +TQSize PlayerProgress::sizeHint() const { return TQSize(10, _board->matrix().height() * BasePrefs::blockSize()) + 2 * TQSize(frameWidth(), frameWidth()); |