Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_gui_context_command_p.cpp
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2014 Dmitry Kazakov <dimula73@gmail.com>
3
*
4
* SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
7
#include "
kis_gui_context_command_p.h
"
8
#include "
kundo2command.h
"
9
10
KisGuiContextCommandDelegate::KisGuiContextCommandDelegate
(QObject *parent)
11
: QObject(parent)
12
{
13
}
14
15
void
KisGuiContextCommandDelegate::executeCommand
(
KUndo2Command
*command,
bool
undo)
16
{
17
if
(!undo) {
18
command->
redo
();
19
}
else
{
20
command->
undo
();
21
}
22
}
KUndo2Command
Definition
kundo2stack.h:87
KUndo2Command::undo
virtual void undo()
Definition
kundo2stack.cpp:240
KUndo2Command::redo
virtual void redo()
Definition
kundo2stack.cpp:222
KisGuiContextCommandDelegate::KisGuiContextCommandDelegate
KisGuiContextCommandDelegate(QObject *parent=0)
Definition
kis_gui_context_command_p.cpp:10
KisGuiContextCommandDelegate::executeCommand
void executeCommand(KUndo2Command *command, bool undo)
Definition
kis_gui_context_command_p.cpp:15
kis_gui_context_command_p.h
kundo2command.h
libs
ui
kis_gui_context_command_p.cpp
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52