KUndoActions

KUndoActions Namespace Reference

Functions

KXMLGUI_EXPORT QActioncreateRedoAction (QUndoStack *undoStack, KActionCollection *actionCollection, const QString &actionName=QString())
 
KXMLGUI_EXPORT QActioncreateUndoAction (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
undoStackthe QUndoStack the action triggers the redo on
actionCollectionthe KActionCollection that should be the parent of the action
actionNamethe 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
undoStackthe QUndoStack the action triggers the undo on
actionCollectionthe KActionCollection that should be the parent of the action
actionNamethe 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 Jul 19 2024 11:55:33 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.