diff options
Diffstat (limited to 'kpat/pile.cpp')
-rw-r--r-- | kpat/pile.cpp | 14 |
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); } |