[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdegames/kmines
From: Nicolas Hadacek <hadacek () kde ! org>
Date: 2002-12-21 21:24:25
[Download RAW message or body]
CVS commit by hadacek:
take care of API change in KGrid2D
M +3 -3 dialogs.cpp 1.70
M +1 -1 dialogs.h 1.47
M +4 -5 field.cpp 1.62
M +3 -3 field.h 1.38
--- kdegames/kmines/dialogs.h #1.46:1.47
@@ -100,5 +100,5 @@ class GameConfig : public KConfigWidget,
private slots:
- void magicRevealToggled();
+ void magicRevealToggled(bool);
private:
--- kdegames/kmines/dialogs.cpp #1.69:1.70
@@ -194,5 +194,5 @@ GameConfig::GameConfig()
cb = new QCheckBox(this);
_magic = configCollection()->plug("magic reveal", cb);
- connect(_magic, SIGNAL(modified()), SLOT(magicRevealToggled()));
+ connect(cb, SIGNAL(toggled(bool)), SLOT(magicRevealToggled(bool)));
top->addWidget(cb);
@@ -213,7 +213,7 @@ GameConfig::GameConfig()
}
-void GameConfig::magicRevealToggled()
+void GameConfig::magicRevealToggled(bool enabled)
{
- if ( _magic->value().toBool() )
+ if (enabled)
KMessageBox::information(this,
i18n("When the \"magic\" reveal is on, "
--- kdegames/kmines/field.h #1.37:1.38
@@ -57,5 +57,5 @@ class Field : public FieldFrame, public
void keyboardAutoReveal();
CaseState doAction(ActionType type, const KGrid2D::Coord &c,
- bool completeReveal, KGrid2D::CoordSet *autorevealed = 0,
+ bool completeReveal, KGrid2D::CoordList *autorevealed = 0,
bool *caseUncovered = 0);
@@ -95,5 +95,5 @@ class Field : public FieldFrame, public
void doAutoReveal(const KGrid2D::Coord &);
- bool doReveal(const KGrid2D::Coord &, KGrid2D::CoordSet *autorevealed = 0,
+ bool doReveal(const KGrid2D::Coord &, KGrid2D::CoordList *autorevealed = 0,
bool *caseUncovered = 0);
void doMark(const KGrid2D::Coord &);
--- kdegames/kmines/field.cpp #1.61:1.62
@@ -230,8 +230,7 @@ void Field::pressClearFunction(const Coo
{
pressCase(p, pressed);
- CoordSet n;
- coveredNeighbours(p, n);
+ CoordList n = coveredNeighbours(p);
QPainter painter(this);
- for (CoordSet::iterator it=n.begin(); it!=n.end(); ++it)
+ for (CoordList::const_iterator it=n.begin(); it!=n.end(); ++it)
drawCase(painter, *it, pressed);
}
@@ -280,5 +279,5 @@ void Field::moveToEdge(Neighbour n)
}
-bool Field::doReveal(const Coord &c, CoordSet *autorevealed,
+bool Field::doReveal(const Coord &c, CoordList *autorevealed,
bool *caseUncovered)
{
@@ -323,5 +322,5 @@ void Field::doUmark(const Coord &c)
KMines::CaseState Field::doAction(ActionType type, const Coord &c,
- bool complete, CoordSet *autorevealed,
+ bool complete, CoordList *autorevealed,
bool *caseUncovered)
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic