tool switching implemented
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#ifndef TOOLBARBUTTON_H
|
||||
#define TOOLBARBUTTON_H
|
||||
|
||||
#include <QPushButton>
|
||||
|
||||
#include "tool/tool.h"
|
||||
|
||||
class ToolbarButton : public QPushButton
|
||||
{
|
||||
public:
|
||||
ToolbarButton(QWidget* parent, const QIcon& icon, const olive::tool::Tool& tool);
|
||||
|
||||
const olive::tool::Tool& tool();
|
||||
private:
|
||||
olive::tool::Tool tool_;
|
||||
};
|
||||
|
||||
#endif // TOOLBARBUTTON_H
|
||||
Reference in New Issue
Block a user