From 838baf3f99ec5ab81b063eb5449a3381d860f377 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 11 Jun 2011 04:58:26 +0000 Subject: 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 --- libksirtet/common/ai.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libksirtet/common/ai.cpp') diff --git a/libksirtet/common/ai.cpp b/libksirtet/common/ai.cpp index 78f9d5af..3960291e 100644 --- a/libksirtet/common/ai.cpp +++ b/libksirtet/common/ai.cpp @@ -222,7 +222,7 @@ double AI::points() const for (uint i=0; i<_elements.size(); i++) { if ( _elements[i].coefficient==0.0 ) continue; double v = _elements[i].data->function(*main, *board); - if ( _elements[i].data->triggered && qRound(v)<_elements[i].trigger ) + if ( _elements[i].data->triggered && tqRound(v)<_elements[i].trigger ) continue; pts += _elements[i].coefficient * v; } @@ -343,14 +343,14 @@ TQCString AIConfig::coefficientKey(const char *name) double AIConfig::coefficient(const AI::Data &data) { - KConfigSkeletonItem *item = CommonPrefs::self()->findItem( TQString("Coefficient_%1").arg(data.name) ); + KConfigSkeletonItem *item = CommonPrefs::self()->findItem( TQString("Coefficient_%1").tqarg(data.name) ); assert(item); return item->property().toDouble(); } int AIConfig::trigger(const AI::Data &data) { - KConfigSkeletonItem *item = CommonPrefs::self()->findItem( TQString("Trigger_%1").arg(data.name) ); + KConfigSkeletonItem *item = CommonPrefs::self()->findItem( TQString("Trigger_%1").tqarg(data.name) ); assert(item); return item->property().toInt(); } -- cgit v1.2.1