summaryrefslogtreecommitdiffstats
path: root/kmines/field.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
commit838baf3f99ec5ab81b063eb5449a3381d860f377 (patch)
treedd31abcfde08ca92e4623b8f50b3d762a87c997a /kmines/field.cpp
parent2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff)
downloadtdegames-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 'kmines/field.cpp')
-rw-r--r--kmines/field.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kmines/field.cpp b/kmines/field.cpp
index ff3b4e46..582e6663 100644
--- a/kmines/field.cpp
+++ b/kmines/field.cpp
@@ -44,8 +44,8 @@ const Field::ActionData Field::ACTION_DATA[Nb_Actions] = {
{ "UnsetUncertain", "unset_uncertain", I18N_NOOP("Question mark unset") }
};
-Field::Field(TQWidget *parent)
- : FieldFrame(parent), _state(Init), _solvingState(Regular), _level(Level::Easy)
+Field::Field(TQWidget *tqparent)
+ : FieldFrame(tqparent), _state(Init), _solvingState(Regular), _level(Level::Easy)
{}
void Field::readSettings()
@@ -57,7 +57,7 @@ void Field::readSettings()
if ( Settings::magicReveal() ) emit setCheating();
}
-TQSize Field::sizeHint() const
+TQSize Field::tqsizeHint() const
{
return TQSize(2*frameWidth() + _level.width()*Settings::caseSize(),
2*frameWidth() + _level.height()*Settings::caseSize());
@@ -117,7 +117,7 @@ void Field::changeCase(const Coord &p, CaseState newState)
BaseField::changeCase(p, newState);
TQPainter painter(this);
drawCase(painter, p);
- if ( isActive() ) emit updateStatus( hasMine(p) );
+ if ( isActive() ) emit updatetqStatus( hasMine(p) );
}
TQPoint Field::toPoint(const Coord &p) const