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
+14
View File
@@ -0,0 +1,14 @@
#include "toolbarbutton.h"
ToolbarButton::ToolbarButton(QWidget *parent, const QIcon &icon, const olive::tool::Tool &tool) :
QPushButton(parent),
tool_(tool)
{
setCheckable(true);
setIcon(icon);
}
const olive::tool::Tool &ToolbarButton::tool()
{
return tool_;
}