KUndoActions
KUndoActions Namespace Reference
Functions | |
KXMLGUI_EXPORT QAction * | createRedoAction (QUndoStack *undoStack, KActionCollection *actionCollection, const QString &actionName=QString()) |
KXMLGUI_EXPORT QAction * | createUndoAction (QUndoStack *undoStack, KActionCollection *actionCollection, const QString &actionName=QString()) |
Detailed Description
Provides functions that creates undo/redo actions for a QUndoStack with KDE's default icons and shortcuts.
See QUndoStack for more information.
- Since
- 5.0
Function Documentation
◆ createRedoAction()
QAction * KUndoActions::createRedoAction | ( | QUndoStack * | undoStack, |
KActionCollection * | actionCollection, | ||
const QString & | actionName = QString() ) |
Creates an redo action with the default shortcut and icon and adds it to actionCollection
.
- Parameters
-
undoStack the QUndoStack the action triggers the redo on actionCollection the KActionCollection that should be the parent of the action actionName the created action's object name, empty string will set it to the KDE default
- Returns
- the created action.
Definition at line 19 of file kundoactions.cpp.
◆ createUndoAction()
QAction * KUndoActions::createUndoAction | ( | QUndoStack * | undoStack, |
KActionCollection * | actionCollection, | ||
const QString & | actionName = QString() ) |
Creates an undo action with the default KDE shortcut and icon and adds it to actionCollection
.
- Parameters
-
undoStack the QUndoStack the action triggers the undo on actionCollection the KActionCollection that should be the parent of the action actionName the created action's object name, empty string will set it to the KDE default
- Returns
- the created action.
Definition at line 38 of file kundoactions.cpp.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:13:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:13:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.