summaryrefslogtreecommitdiffstats
path: root/kpat/pile.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
commit838baf3f99ec5ab81b063eb5449a3381d860f377 (patch)
treedd31abcfde08ca92e4623b8f50b3d762a87c997a /kpat/pile.cpp
parent2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff)
downloadtdegames-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 'kpat/pile.cpp')
-rw-r--r--kpat/pile.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kpat/pile.cpp b/kpat/pile.cpp
index 50a15bab..8d34325e 100644
--- a/kpat/pile.cpp
+++ b/kpat/pile.cpp
@@ -32,13 +32,13 @@ Pile::Pile( int _index, Dealer* _dealer)
// Make the patience aware of this pile.
dealer()->addPile(this);
- TQCanvasRectangle::setVisible(true); // default
+ TQCanvasRectangle::tqsetVisible(true); // default
_checkIndex = -1;
m_addFlags = 0;
m_removeFlags = 0;
- setBrush(Qt::black);
- setPen(TQPen(Qt::black));
+ setBrush(TQt::black);
+ setPen(TQPen(TQt::black));
setZ(0);
initSizes();
@@ -193,12 +193,12 @@ bool Pile::legalRemove(const Card *c) const
void Pile::setVisible(bool vis)
{
- TQCanvasRectangle::setVisible(vis);
+ TQCanvasRectangle::tqsetVisible(vis);
dealer()->enlargeCanvas(this);
for (CardList::Iterator it = m_cards.begin(); it != m_cards.end(); ++it)
{
- (*it)->setVisible(vis);
+ (*it)->tqsetVisible(vis);
dealer()->enlargeCanvas(*it);
}
}
@@ -218,7 +218,7 @@ void Pile::moveBy(double dx, double dy)
int Pile::indexOf(const Card *c) const
{
assert(c->source() == this);
- return m_cards.findIndex(const_cast<Card*>(c)); // the list is of non-const cards
+ return m_cards.tqfindIndex(const_cast<Card*>(c)); // the list is of non-const cards
}
Card *Pile::at(int index) const
@@ -338,7 +338,7 @@ void Pile::add( Card* _card, bool _facedown, bool _spread )
void Pile::remove(Card *c)
{
- assert(m_cards.contains(c));
+ assert(m_cards.tqcontains(c));
m_cards.remove(c);
}