mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-01-06 09:03:58 +00:00
closes: #1374 . Use SPDX short-form identifiers instead of lengthy copyright header to document per-file license and copyright. This commit updates all files under src/ directory where applicable as well as org.flameshot.Flameshot.metainfo.xml.
46 lines
881 B
C++
46 lines
881 B
C++
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
|
|
|
|
#include "redotool.h"
|
|
#include <QPainter>
|
|
|
|
RedoTool::RedoTool(QObject* parent)
|
|
: AbstractActionTool(parent)
|
|
{}
|
|
|
|
bool RedoTool::closeOnButtonPressed() const
|
|
{
|
|
return false;
|
|
}
|
|
|
|
QIcon RedoTool::icon(const QColor& background, bool inEditor) const
|
|
{
|
|
Q_UNUSED(inEditor);
|
|
return QIcon(iconPath(background) + "redo-variant.svg");
|
|
}
|
|
QString RedoTool::name() const
|
|
{
|
|
return tr("Redo");
|
|
}
|
|
|
|
ToolType RedoTool::nameID() const
|
|
{
|
|
return ToolType::REDO;
|
|
}
|
|
|
|
QString RedoTool::description() const
|
|
{
|
|
return tr("Redo the next modification");
|
|
}
|
|
|
|
CaptureTool* RedoTool::copy(QObject* parent)
|
|
{
|
|
return new RedoTool(parent);
|
|
}
|
|
|
|
void RedoTool::pressed(const CaptureContext& context)
|
|
{
|
|
Q_UNUSED(context);
|
|
emit requestAction(REQ_REDO_MODIFICATION);
|
|
}
|