Add basic code for the Pin tool

This commit is contained in:
lupoDharkael
2018-04-17 00:06:57 +02:00
parent 344d327528
commit 205cd7c87b
13 changed files with 293 additions and 2 deletions

View File

@@ -33,6 +33,7 @@
#include "launcher/applaunchertool.h"
#include "blur/blurtool.h"
#include "redo/redotool.h"
#include "pin/pintool.h"
ToolFactory::ToolFactory(QObject *parent) : QObject(parent) {
@@ -95,6 +96,9 @@ CaptureTool* ToolFactory::CreateTool(
case CaptureButton::TYPE_BLUR:
tool = new BlurTool(parent);
break;
case CaptureButton::TYPE_PIN:
tool = new PinTool(parent);
break;
default:
tool = nullptr;
break;