QTfrontend/frameTeam.cpp
changeset 1475 bab5650fc894
parent 1424 2b45d88716b0
child 1647 ab0c8c4be7b3
--- a/QTfrontend/frameTeam.cpp	Tue Nov 04 22:42:08 2008 +0000
+++ b/QTfrontend/frameTeam.cpp	Tue Nov 04 22:49:13 2008 +0000
@@ -44,14 +44,14 @@
 	resetColors();
 }
 
-void FrameTeams::setNonInteractive()
+void FrameTeams::setInteractivity(bool interactive)
 {
-  nonInteractive=true;
-  for(tmapTeamToWidget::iterator it=teamToWidget.begin(); it!=teamToWidget.end(); ++it) {
-    TeamShowWidget* pts=dynamic_cast<TeamShowWidget*>(it.value());
-    if(!pts) throw;
-    pts->setNonInteractive();
-  }
+	nonInteractive = !interactive;
+	for(tmapTeamToWidget::iterator it=teamToWidget.begin(); it!=teamToWidget.end(); ++it) {
+		TeamShowWidget* pts = dynamic_cast<TeamShowWidget*>(it.value());
+		if(!pts) throw;
+		pts->setInteractivity(interactive);
+	}
 }
 
 void FrameTeams::resetColors()
@@ -70,7 +70,7 @@
 void FrameTeams::addTeam(HWTeam team, bool willPlay)
 {
   TeamShowWidget* pTeamShowWidget = new TeamShowWidget(team, willPlay, this);
-  if(nonInteractive) pTeamShowWidget->setNonInteractive();
+  if(nonInteractive) pTeamShowWidget->setInteractivity(false);
 //  int hght=teamToWidget.empty() ? 0 : teamToWidget.begin()->second->size().height();
   mainLayout.addWidget(pTeamShowWidget);
   teamToWidget.insert(team, pTeamShowWidget);