QTfrontend/frameTeam.cpp
changeset 382 e7220e48ead1
parent 372 4bac77f8cd38
child 383 09a8795105a4
--- 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);