From 576eb4299a00bc053db35414406f46372a0f70f2 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:42:31 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kpat/pile.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'kpat/pile.cpp') diff --git a/kpat/pile.cpp b/kpat/pile.cpp index dd419580..50a15bab 100644 --- a/kpat/pile.cpp +++ b/kpat/pile.cpp @@ -1,7 +1,7 @@ #include "pile.h" #include "dealer.h" #include -#include +#include #include "cardmaps.h" #include #include "speeds.h" @@ -22,7 +22,7 @@ const int Pile::wholeColumn = 0x0400; Pile::Pile( int _index, Dealer* _dealer) - : QCanvasRectangle( _dealer->canvas() ), + : TQCanvasRectangle( _dealer->canvas() ), m_dealer(_dealer), m_atype(Custom), m_rtype(Custom), @@ -32,13 +32,13 @@ Pile::Pile( int _index, Dealer* _dealer) // Make the patience aware of this pile. dealer()->addPile(this); - QCanvasRectangle::setVisible(true); // default + TQCanvasRectangle::setVisible(true); // default _checkIndex = -1; m_addFlags = 0; m_removeFlags = 0; setBrush(Qt::black); - setPen(QPen(Qt::black)); + setPen(TQPen(Qt::black)); setZ(0); initSizes(); @@ -119,7 +119,7 @@ void Pile::resetCache() cache_selected.resize(0, 0); } -void Pile::drawShape ( QPainter & painter ) +void Pile::drawShape ( TQPainter & painter ) { if (isSelected()) { if (cache.isNull()) @@ -193,7 +193,7 @@ bool Pile::legalRemove(const Card *c) const void Pile::setVisible(bool vis) { - QCanvasRectangle::setVisible(vis); + TQCanvasRectangle::setVisible(vis); dealer()->enlargeCanvas(this); for (CardList::Iterator it = m_cards.begin(); it != m_cards.end(); ++it) @@ -205,7 +205,7 @@ void Pile::setVisible(bool vis) void Pile::moveBy(double dx, double dy) { - QCanvasRectangle::moveBy(dx, dy); + TQCanvasRectangle::moveBy(dx, dy); dealer()->enlargeCanvas(this); for (CardList::Iterator it = m_cards.begin(); it != m_cards.end(); ++it) @@ -277,20 +277,20 @@ void Pile::add( Card *_card, int index) // // Note: Default is to only have vertical spread (Y direction). -QSize Pile::cardOffset( bool _spread, bool _facedown, const Card *before) const +TQSize Pile::cardOffset( bool _spread, bool _facedown, const Card *before) const { if (_spread) { if (_facedown) - return QSize(0, dspread()); + return TQSize(0, dspread()); else { if (before && !before->isFaceUp()) - return QSize(0, dspread()); + return TQSize(0, dspread()); else - return QSize(0, spread()); + return TQSize(0, spread()); } } - return QSize(0, 0); + return TQSize(0, 0); } /* override cardtype (for initial deal ) */ @@ -310,7 +310,7 @@ void Pile::add( Card* _card, bool _facedown, bool _spread ) _card->turn( !_facedown ); - QSize offset = cardOffset(_spread, _facedown, t); + TQSize offset = cardOffset(_spread, _facedown, t); int x2, y2, z2; @@ -408,7 +408,7 @@ void Pile::moveCardsBack(CardList &cl, bool anim) Card *c = cl.first(); Card *before = 0; - QSize off; + TQSize off; int steps = STEPS_MOVEBACK; if (!anim) -- cgit v1.2.1