Skip to content
Browse files

reset the flow compass between debugs

  • Loading branch information...
1 parent 0bb5038 commit 65fc42da6d55058d2e4f3886de14c0824bbf5ad6 @Ramblurr committed
Showing with 9 additions and 0 deletions.
  1. +1 −0 DebugWidget.cpp
  2. +6 −0 FlowCompass.cpp
  3. +2 −0 FlowCompass.h
View
1 DebugWidget.cpp
@@ -56,6 +56,7 @@ void DebugWidget::slotDebugStarted()
mActionLabel->setText( "" );
mValueLabel->setText( "" );
mCoordinate->setText( "Before first instruction" );
+ mFlowCompass->reset();
changeCurrent( 0 );
}
View
6 FlowCompass.cpp
@@ -39,6 +39,12 @@ FlowCompass::FlowCompass( QWidget* parent ) :
setMinimumSize( 100, 100 );
}
+void FlowCompass::reset()
+{
+ mCCDirection = FlowCompass::Left;
+ mDPDirection = FlowCompass::Right;
+}
+
FlowCompass::~FlowCompass()
{
View
2 FlowCompass.h
@@ -44,6 +44,8 @@ Q_OBJECT
void setCCDirection( const Direction &direction );
void setDPDirection( const Direction &direction );
+ void reset();
+
protected:
virtual void paintEvent(QPaintEvent* );

0 comments on commit 65fc42d

Please sign in to comment.
Something went wrong with that request. Please try again.