QTfrontend/hedgehogerWidget.cpp
changeset 362 b28e0dd48269
parent 352 4665bfe25470
child 486 7ea71cd3acd5
--- a/QTfrontend/hedgehogerWidget.cpp	Tue Jan 23 22:48:08 2007 +0000
+++ b/QTfrontend/hedgehogerWidget.cpp	Wed Jan 24 20:00:03 2007 +0000
@@ -24,7 +24,7 @@
 #include "frameTeam.h"
 
 CHedgehogerWidget::CHedgehogerWidget(QWidget * parent) :
-  QWidget(parent)
+  QWidget(parent), nonInteractive(false)
 {
   if(parent) {
     pOurFrameTeams=dynamic_cast<FrameTeams*>(parent->parentWidget());
@@ -40,8 +40,14 @@
   pOurFrameTeams->overallHedgehogs-=numHedgehogs;
 }
 
+void CHedgehogerWidget::setNonInteractive()
+{
+  nonInteractive=true;
+}
+
 void CHedgehogerWidget::mousePressEvent ( QMouseEvent * event )
 {
+  if(nonInteractive) return;
   if(event->button()==Qt::LeftButton) {
     event->accept();
     if(numHedgehogs < 8 && pOurFrameTeams->overallHedgehogs<18) {