src/tools/drawtool.cpp

Sun, 16 May 2021 22:41:00 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Sun, 16 May 2021 22:41:00 +0300
changeset 103
94719518e310
parent 96
165777a20dc7
child 104
cd4df75924b7
permissions
-rw-r--r--

update

#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::mouseReleased(const BaseTool::MouseEventData &event)
{
	QMessageBox::information(nullptr, "hleelo", "it works");
}

mercurial