diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
commit | 576eb4299a00bc053db35414406f46372a0f70f2 (patch) | |
tree | 4c030922d533821db464af566188e7d40cc8848c /kpat/fortyeight.cpp | |
parent | 0718336b6017d1a4fc1d626544180a5a2a29ddec (diff) | |
download | tdegames-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/fortyeight.cpp')
-rw-r--r-- | kpat/fortyeight.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kpat/fortyeight.cpp b/kpat/fortyeight.cpp index 1d867378..1747b647 100644 --- a/kpat/fortyeight.cpp +++ b/kpat/fortyeight.cpp @@ -12,12 +12,12 @@ HorLeftPile::HorLeftPile( int _index, Dealer* parent) setHSpread( cardMap::CARDX() / 11 + 1 ); } -QSize HorLeftPile::cardOffset( bool _spread, bool, const Card *) const +TQSize HorLeftPile::cardOffset( bool _spread, bool, const Card *) const { if (_spread) - return QSize(-hspread(), 0); + return TQSize(-hspread(), 0); - return QSize(0, 0); + return TQSize(0, 0); } void HorLeftPile::initSizes() @@ -35,7 +35,7 @@ Fortyeight::Fortyeight( KMainWindow* parent, const char* name) const int dist_x = cardMap::CARDX() * 11 / 10 + 1; const int dist_y = cardMap::CARDY() * 11 / 10 + 1; - connect(deck, SIGNAL(clicked(Card*)), SLOT(deckClicked(Card*))); + connect(deck, TQT_SIGNAL(clicked(Card*)), TQT_SLOT(deckClicked(Card*))); deck->move(10 + cardMap::CARDX() * 82 / 10, 10 + cardMap::CARDX() * 56 / 10); deck->setZ(20); @@ -124,12 +124,12 @@ void Fortyeight::deal() pile->add(deck->nextCard(), false, false); } -QString Fortyeight::getGameState() const +TQString Fortyeight::getGameState() const { - return QString::number(lastdeal); + return TQString::number(lastdeal); } -void Fortyeight::setGameState( const QString &s ) +void Fortyeight::setGameState( const TQString &s ) { lastdeal = s.toInt(); } |