diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:58:26 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:58:26 +0000 |
commit | 838baf3f99ec5ab81b063eb5449a3381d860f377 (patch) | |
tree | dd31abcfde08ca92e4623b8f50b3d762a87c997a /kpoker/kpaint.cpp | |
parent | 2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff) | |
download | tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.tar.gz tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.zip |
TQt4 port kdegames
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1236074 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpoker/kpaint.cpp')
-rw-r--r-- | kpoker/kpaint.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kpoker/kpaint.cpp b/kpoker/kpaint.cpp index 5ba74f40..15ce5935 100644 --- a/kpoker/kpaint.cpp +++ b/kpoker/kpaint.cpp @@ -38,14 +38,14 @@ TQPixmap *CardImages::m_cardPixmaps; TQPixmap *CardImages::m_deck; -CardImages::CardImages(TQWidget* parent, const char* name) - : TQWidget(parent, name) +CardImages::CardImages(TQWidget* tqparent, const char* name) + : TQWidget(tqparent, name) { - m_cardPixmaps = new QPixmap[numCards]; + m_cardPixmaps = new TQPixmap[numCards]; m_deck = new TQPixmap; // Hide the window. - // FIXME: Why is this a QWidget? + // FIXME: Why is this a TQWidget? hide(); // loadCards(); } @@ -109,8 +109,8 @@ CardImages::loadDeck(TQString path) extern CardImages *cardImages; -CardWidget::CardWidget( TQWidget *parent, const char *name ) - : TQPushButton( parent, name ) +CardWidget::CardWidget( TQWidget *tqparent, const char *name ) + : TQPushButton( tqparent, name ) { m_held = false; @@ -168,13 +168,13 @@ void CardWidget::paintCard(int cardType) } -void CardWidget::repaintDeck() +void CardWidget::tqrepaintDeck() { setPixmap(*m_pm); setFixedSize(cardImages->getWidth(), cardImages->getHeight()); - ((TQWidget*) parent())->layout()->invalidate(); - ((TQWidget*) parent())->setFixedSize( ((TQWidget*) parent())->sizeHint()); + ((TQWidget*) tqparent())->tqlayout()->tqinvalidate(); + ((TQWidget*) tqparent())->setFixedSize( ((TQWidget*) tqparent())->tqsizeHint()); } |