summaryrefslogtreecommitdiffstats
path: root/kpat/pile.cpp
diff options
context:
space:
mode:
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)