Commit f15cd463 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

MainWindow: Rework the way tool change is propagated

parent 92f5ea4c
......@@ -789,9 +789,9 @@ void
MainWindow::toolButtonClicked( QAction *action )
{
if ( action == m_ui.actionSelection_mode )
emit toolChanged( TOOL_DEFAULT );
emit selectionToolSelected();
else if ( action == m_ui.actionCut_mode )
emit toolChanged( TOOL_CUT );
emit cutToolSelected();
else
vlmcCritical() << "Unknown tool. This should not happen !";
}
......
......@@ -165,7 +165,8 @@ private slots:
void onProjectSaved();
signals:
void toolChanged( ToolButtons );
void selectionToolSelected();
void cutToolSelected();
void scaleChanged( quint32 scaleLevel );
};
......
......@@ -43,10 +43,4 @@
#define SleepS( x ) sleep( x )
#endif
enum ToolButtons
{
TOOL_DEFAULT,
TOOL_CUT,
};
#endif // VLMC_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment