src/tools/drawtool.cpp

Mon, 19 Jul 2021 19:28:16 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Mon, 19 Jul 2021 19:28:16 +0300
changeset 104
cd4df75924b7
parent 103
94719518e310
child 106
128efb9d148b
permissions
-rw-r--r--

Add connections

#include <QMessageBox>
#include "drawtool.h"

DrawTool::DrawTool(QObject* parent) :
	BaseTool{parent} {}

QString DrawTool::name() const
{
	static const QString result = tr("Draw");
	return result;
}

QString DrawTool::toolTip() const
{
	static const QString result = tr("Draw new elements into the model.");
	return result;
}

bool DrawTool::mouseClick(const Canvas::MouseClickInfo& info)
{
	static_cast<void>(info);
	QMessageBox::information(nullptr, "hleelo", "it works");
	return true;
}

mercurial