|
Krita Source Code Documentation
|
Functions | |
| KRITAWIDGETUTILS_EXPORT QAction * | createRedoAction (QUndoStack *undoStack, KisKActionCollection *actionCollection, const QString &actionName=QString()) |
| KRITAWIDGETUTILS_EXPORT QAction * | createUndoAction (QUndoStack *undoStack, KisKActionCollection *actionCollection, const QString &actionName=QString()) |
Provides functions that creates undo/redo actions for a QUndoStack with KDE's default icons and shortcuts. See QUndoStack for more information.
| QAction * KisKUndoActions::createRedoAction | ( | QUndoStack * | undoStack, |
| KisKActionCollection * | actionCollection, | ||
| const QString & | actionName = QString() ) |
Creates an redo action with the default shortcut and icon and adds it to actionCollection
| undoStack | the QUndoStack the action triggers the redo on |
| actionCollection | the KisKActionCollection that should be the parent of the action |
| actionName | the created action's object name, empty string will set it to the KDE default |
Definition at line 20 of file kundoactions.cpp.
References KisKActionCollection::addAction(), KisIconUtils::loadIcon(), KStandardAction::name(), and KStandardAction::Redo.
| QAction * KisKUndoActions::createUndoAction | ( | QUndoStack * | undoStack, |
| KisKActionCollection * | actionCollection, | ||
| const QString & | actionName = QString() ) |
Creates an undo action with the default KDE shortcut and icon and adds it to actionCollection
| undoStack | the QUndoStack the action triggers the undo on |
| actionCollection | the KisKActionCollection that should be the parent of the action |
| actionName | the created action's object name, empty string will set it to the KDE default |
Definition at line 39 of file kundoactions.cpp.
References KisKActionCollection::addAction(), KisIconUtils::loadIcon(), KStandardAction::name(), and KStandardAction::Undo.