KQuickImageEditor

undocommand.h
1 /*
2  * SPDX-FileCopyrightText: (C) 2020 Carl Schwan <[email protected]>
3  *
4  * SPDX-License-Identifier: LGPL-2.1-or-later
5  */
6 
7 #pragma once
8 
9 class QImage;
10 
11 /**
12  * A class implementing the command pattern. This is used to implemented various filters.
13  */
15 {
16 public:
17  virtual ~UndoCommand() = 0;
18 
19  /**
20  * Applies the change to the document.
21  */
22  virtual QImage redo(QImage image) = 0;
23 
24  /**
25  * Revert a change to the document.
26  */
27  virtual QImage undo(QImage image) = 0;
28 };
virtual QImage undo(QImage image)=0
Revert a change to the document.
A class implementing the command pattern.
Definition: undocommand.h:14
virtual QImage redo(QImage image)=0
Applies the change to the document.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Oct 18 2021 23:08:19 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.