summaryrefslogtreecommitdiffstats
path: root/kpat/pile.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
commit576eb4299a00bc053db35414406f46372a0f70f2 (patch)
tree4c030922d533821db464af566188e7d40cc8848c /kpat/pile.cpp
parent0718336b6017d1a4fc1d626544180a5a2a29ddec (diff)
downloadtdegames-576eb4299a00bc053db35414406f46372a0f70f2.tar.gz
tdegames-576eb4299a00bc053db35414406f46372a0f70f2.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpat/pile.cpp')
-rw-r--r--kpat/pile.cpp28
1 files changed, 14 insertions, 14 deletions
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 <kdebug.h>
-#include <qpainter.h>
+#include <tqpainter.h>
#include "cardmaps.h"
#include <assert.h>
#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)