moved tool enum to a Tool class

Code cleanup and improvement.
This commit is contained in:
itsmattkc
2019-12-26 17:35:25 +11:00
parent d140094cf5
commit bb9284a894
9 changed files with 92 additions and 95 deletions
+2 -2
View File
@@ -20,14 +20,14 @@
#include "toolbarbutton.h"
ToolbarButton::ToolbarButton(QWidget *parent, const olive::tool::Tool &tool) :
ToolbarButton::ToolbarButton(QWidget *parent, const Tool::Item &tool) :
QPushButton(parent),
tool_(tool)
{
setCheckable(true);
}
const olive::tool::Tool &ToolbarButton::tool()
const Tool::Item &ToolbarButton::tool()
{
return tool_;
}