--- a/QTfrontend/frameTeam.cpp Sat Feb 03 12:42:38 2007 +0000
+++ b/QTfrontend/frameTeam.cpp Sat Feb 03 21:40:50 2007 +0000
@@ -54,6 +54,14 @@
currentColor=availableColors.begin();
}
+QColor FrameTeams::getNextColor() const
+{
+ QList<QColor>::ConstIterator nextColor=currentColor;
+ ++nextColor;
+ if (nextColor==availableColors.end()) nextColor=availableColors.begin();
+ return *nextColor;
+}
+
void FrameTeams::addTeam(HWTeam team, bool willPlay)
{
TeamShowWidget* pTeamShowWidget = new TeamShowWidget(team, willPlay, this);