diff -r c3eebac100c0 -r b28e0dd48269 QTfrontend/hedgehogerWidget.cpp --- 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(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) {