Krita Source Code Documentation
Loading...
Searching...
No Matches
KisGuiContextCommandDelegate Class Reference

#include <kis_gui_context_command_p.h>

+ Inheritance diagram for KisGuiContextCommandDelegate:

Public Slots

void executeCommand (KUndo2Command *command, bool undo)
 

Public Member Functions

 KisGuiContextCommandDelegate (QObject *parent=0)
 

Detailed Description

Definition at line 13 of file kis_gui_context_command_p.h.

Constructor & Destructor Documentation

◆ KisGuiContextCommandDelegate()

KisGuiContextCommandDelegate::KisGuiContextCommandDelegate ( QObject * parent = 0)

Definition at line 10 of file kis_gui_context_command_p.cpp.

11 : QObject(parent)
12{
13}

Member Function Documentation

◆ executeCommand

void KisGuiContextCommandDelegate::executeCommand ( KUndo2Command * command,
bool undo )
slot

Definition at line 15 of file kis_gui_context_command_p.cpp.

16{
17 if (!undo) {
18 command->redo();
19 } else {
20 command->undo();
21 }
22}
virtual void undo()
virtual void redo()

References KUndo2Command::redo(), and KUndo2Command::undo().


The documentation for this class was generated from the following files: