Command
Command Class Referenceabstract
#include <command.h>
Inheritance diagram for Command:

Public Member Functions | |
void | addProperty (const QString &key, const QVariant &value) |
QVariant | getPropertyValue (const QString &key) |
bool | hasProperty (const QString &key) |
virtual QImage | redo (QImage image)=0 |
virtual QImage | undo (QImage image={})=0 |
Detailed Description
A class implementing the command pattern.
This is used to implemented various filters.
Constructor & Destructor Documentation
◆ ~Command()
|
pure virtual |
Definition at line 9 of file command.cpp.
Member Function Documentation
◆ addProperty()
Definition at line 13 of file command.cpp.
◆ getPropertyValue()
Definition at line 23 of file command.cpp.
◆ hasProperty()
bool Command::hasProperty | ( | const QString & | key | ) |
Definition at line 18 of file command.cpp.
◆ redo()
Applies the change to the document.
Implemented in CropCommand, MirrorCommand, ResizeCommand, and RotateCommand.
◆ undo()
Revert a change to the document.
Implemented in CropCommand, MirrorCommand, ResizeCommand, and RotateCommand.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 11 2025 11:57:09 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 11 2025 11:57:09 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.