tool switching implemented

This commit is contained in:
itsmattkc
2019-06-22 20:45:55 -07:00
parent 4090c452d6
commit 75081f76c9
11 changed files with 208 additions and 29 deletions
+4
View File
@@ -1,5 +1,6 @@
#include "tool.h"
#include "core.h"
#include "widget/toolbar/toolbar.h"
ToolPanel::ToolPanel(QWidget *parent) :
@@ -9,6 +10,9 @@ ToolPanel::ToolPanel(QWidget *parent) :
setWidget(t);
connect(t, SIGNAL(ToolChanged(const olive::tool::Tool&)), &olive::core, SLOT(SetTool(const olive::tool::Tool&)));
connect(&olive::core, SIGNAL(ToolChanged(const olive::tool::Tool&)), t, SLOT(SetTool(const olive::tool::Tool&)));
Retranslate();
}