diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:58:26 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:58:26 +0000 |
commit | 838baf3f99ec5ab81b063eb5449a3381d860f377 (patch) | |
tree | dd31abcfde08ca92e4623b8f50b3d762a87c997a /kpat/cardmaps.cpp | |
parent | 2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff) | |
download | tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.tar.gz tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.zip |
TQt4 port kdegames
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1236074 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpat/cardmaps.cpp')
-rw-r--r-- | kpat/cardmaps.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kpat/cardmaps.cpp b/kpat/cardmaps.cpp index 563f4bfe..a7461daa 100644 --- a/kpat/cardmaps.cpp +++ b/kpat/cardmaps.cpp @@ -95,7 +95,7 @@ bool cardMap::setCardDir( const TQString &dir) card_width = image.width(); card_height = image.height(); - const int diff_x_between_cards = QMAX(card_width / 9, 1); + const int diff_x_between_cards = TQMAX(card_width / 9, 1); TQString wait_message = i18n("please wait, loading cards..."); TQString greeting = i18n("KPatience - a Solitaire game"); @@ -103,23 +103,23 @@ bool cardMap::setCardDir( const TQString &dir) if( animate ) { t1 = TQTime::currentTime(); - w = new TQWidget( 0, "", Qt::WStyle_Customize | Qt::WStyle_NoBorder | Qt::WStyle_Tool ); + w = new TQWidget( 0, "", TQt::WStyle_Customize | TQt::WStyle_NoBorder | TQt::WStyle_Tool ); TQRect dg = KGlobalSettings::splashScreenDesktopGeometry(); - w->setBackgroundColor( Qt::darkGreen ); + w->setBackgroundColor( TQt::darkGreen ); w->setGeometry( dg.left() + ( dg.width() - greeting_width ) / 2, dg.top() + ( dg.height() - 180 ) / 2, greeting_width, 180); w->show(); - qApp->processEvents(); + tqApp->processEvents(); p.begin( w ); - p.drawText(0, 150, greeting_width, 20, Qt::AlignCenter, + p.drawText(0, 150, greeting_width, 20, TQt::AlignCenter, wait_message ); p.setFont(TQFont("Times", 24)); - p.drawText(0, 0, greeting_width, 40, Qt::AlignCenter, + p.drawText(0, 0, greeting_width, 40, TQt::AlignCenter, greeting); p.setPen(TQPen(TQColor(0, 0, 0), 4)); - p.setBrush(Qt::NoBrush); + p.setBrush(TQt::NoBrush); p.drawRect(0, 0, greeting_width, 180); p.flush(); } |