diff options
Diffstat (limited to 'kpat/card.h')
-rw-r--r-- | kpat/card.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kpat/card.h b/kpat/card.h index 61f07399..8ec96bb9 100644 --- a/kpat/card.h +++ b/kpat/card.h @@ -27,7 +27,7 @@ #ifndef PATIENCE_CARD #define PATIENCE_CARD -#include <qcanvas.h> +#include <tqcanvas.h> // The following classes are defined in other headers: class cardPos; @@ -38,14 +38,14 @@ class Card; // A list of cards. Used in many places. -typedef QValueList<Card*> CardList; +typedef TQValueList<Card*> CardList; // In kpat, a Card is an object that has at least two purposes: // - It has card properties (Suit, Rank, etc) -// - It is a graphic entity on a QCanvas that can be moved around. +// - It is a graphic entity on a TQCanvas that can be moved around. // -class Card: public QObject, public QCanvasRectangle { +class Card: public TQObject, public TQCanvasRectangle { Q_OBJECT public: @@ -53,19 +53,19 @@ public: enum Rank { None = 0, Ace = 1, Two, Three, Four, Five, Six, Seven, Eight, Nine, Ten, Jack, Queen, King }; - Card( Rank r, Suit s, QCanvas *parent=0); + Card( Rank r, Suit s, TQCanvas *parent=0); virtual ~Card(); // Properties of the card. Suit suit() const { return m_suit; } Rank rank() const { return m_rank; } - const QString name() const { return m_name; } + const TQString name() const { return m_name; } // Some basic tests. bool isRed() const { return m_suit==Diamonds || m_suit==Hearts; } bool isFaceUp() const { return m_faceup; } - QPixmap pixmap() const; + TQPixmap pixmap() const; void turn(bool faceup = true); @@ -95,14 +95,14 @@ signals: void stoped(Card *c); protected: - void draw( QPainter &p ); // Redraw the card. + void draw( TQPainter &p ); // Redraw the card. void advance(int stage); private: // The card values. Suit m_suit; Rank m_rank; - QString m_name; + TQString m_name; // Grapics properties. bool m_faceup; // True if card lies with the face up. |