From 838baf3f99ec5ab81b063eb5449a3381d860f377 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 11 Jun 2011 04:58:26 +0000 Subject: 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 --- kpoker/kpaint.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'kpoker/kpaint.cpp') 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()); } -- cgit v1.2.1