Changed clang format to new agreement
This commit is contained in:
committed by
borgmanJeremy
parent
2cbccc3d0a
commit
0d5386edd4
@@ -22,45 +22,38 @@ UndoTool::UndoTool(QObject* parent)
|
||||
: AbstractActionTool(parent)
|
||||
{}
|
||||
|
||||
bool
|
||||
UndoTool::closeOnButtonPressed() const
|
||||
bool UndoTool::closeOnButtonPressed() const
|
||||
{
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
|
||||
QIcon
|
||||
UndoTool::icon(const QColor& background, bool inEditor) const
|
||||
QIcon UndoTool::icon(const QColor& background, bool inEditor) const
|
||||
{
|
||||
Q_UNUSED(inEditor);
|
||||
return QIcon(iconPath(background) + "undo-variant.svg");
|
||||
Q_UNUSED(inEditor);
|
||||
return QIcon(iconPath(background) + "undo-variant.svg");
|
||||
}
|
||||
QString
|
||||
UndoTool::name() const
|
||||
QString UndoTool::name() const
|
||||
{
|
||||
return tr("Undo");
|
||||
return tr("Undo");
|
||||
}
|
||||
|
||||
ToolType
|
||||
UndoTool::nameID() const
|
||||
ToolType UndoTool::nameID() const
|
||||
{
|
||||
return ToolType::UNDO;
|
||||
return ToolType::UNDO;
|
||||
}
|
||||
|
||||
QString
|
||||
UndoTool::description() const
|
||||
QString UndoTool::description() const
|
||||
{
|
||||
return tr("Undo the last modification");
|
||||
return tr("Undo the last modification");
|
||||
}
|
||||
|
||||
CaptureTool*
|
||||
UndoTool::copy(QObject* parent)
|
||||
CaptureTool* UndoTool::copy(QObject* parent)
|
||||
{
|
||||
return new UndoTool(parent);
|
||||
return new UndoTool(parent);
|
||||
}
|
||||
|
||||
void
|
||||
UndoTool::pressed(const CaptureContext& context)
|
||||
void UndoTool::pressed(const CaptureContext& context)
|
||||
{
|
||||
Q_UNUSED(context);
|
||||
emit requestAction(REQ_UNDO_MODIFICATION);
|
||||
Q_UNUSED(context);
|
||||
emit requestAction(REQ_UNDO_MODIFICATION);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user