summaryrefslogtreecommitdiffstats
path: root/kpoker/kpaint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpoker/kpaint.cpp')
-rw-r--r--kpoker/kpaint.cpp18
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());
}