[atlantik-cvs] CVS: kdegames/atlantik/libatlantikui board.cpp,1.96,1.96.6.1
| Newsgroups | gmane.comp.kde.devel.atlantik |
|---|---|
| Message-ID | <[email protected]> |
Update of /home/kde/kdegames/atlantik/libatlantikui
In directory office:/tmp/cvs-serv13244/libatlantikui
Modified Files:
Tag: KDE_3_1_BRANCH
board.cpp
Log Message:
remove hardcoded color/icon determination.. gosh, this hasn't been in use for ages
Index: board.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/board.cpp,v
retrieving revision 1.96
retrieving revision 1.96.6.1
diff -u -d -r1.96 -r1.96.6.1
--- board.cpp 5 Oct 2002 04:37:40 -0000 1.96
+++ board.cpp 20 Dec 2002 02:46:55 -0000 1.96.6.1
@@ -69,48 +69,6 @@
m_displayQueue.setAutoDelete(true);
displayDefault();
-
- QColor color;
- QString icon;
- bool canBeOwned;
-
- for (int i=0;i<maxEstates;i++)
- {
- color = QColor();
- icon = QString();
- canBeOwned = false;
-
- switch(i)
- {
- case 5: case 15: case 25: case 35:
- icon = QString("train.png");
- canBeOwned = true;
- break;
- case 12:
- icon = QString("energy.png");
- canBeOwned = true;
- break;
- case 28:
- icon = QString("water.png");
- canBeOwned = true;
- break;
- case 2: case 17: case 33:
- icon = QString("box.png");
- break;
- case 7: case 36:
- icon = QString("qmark-red.png");
- break;
- case 22:
- icon = QString("qmark-blue.png");
- break;
- case 0:
- icon = QString("arrow.png");
- break;
- case 38:
- icon = QString("ring.png");
- break;
- }
- }
}
void AtlantikBoard::setViewProperties(bool indicateUnowned, bool highliteUnowned, bool darkenMortgaged, bool quartzEffects, bool animateTokens)