• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDEUI

Public Member Functions | List of all members
KUndoStack Class Reference

#include <kundostack.h>

Inheritance diagram for KUndoStack:
QUndoStack

Public Member Functions

 KUndoStack (QObject *parent=0)
 
QAction * createRedoAction (KActionCollection *actionCollection, const QString &actionName=QString())
 
QAction * createUndoAction (KActionCollection *actionCollection, const QString &actionName=QString())
 

Detailed Description

Extends QUndoStack with functions that creates actions with KDE's default icons and shortcuts.

See QUndoStack for more information.

Definition at line 33 of file kundostack.h.

Constructor & Destructor Documentation

◆ KUndoStack()

KUndoStack::KUndoStack ( QObject *  parent = 0)

Constructs a KUndoStack with parent as parent.

Parameters
parentparent of the object

Definition at line 32 of file kundostack.cpp.

Member Function Documentation

◆ createRedoAction()

QAction * KUndoStack::createRedoAction ( KActionCollection *  actionCollection,
const QString &  actionName = QString() 
)

Creates an redo action with the default shortcut and icon and adds it to actionCollection.

Parameters
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 37 of file kundostack.cpp.

◆ createUndoAction()

QAction * KUndoStack::createUndoAction ( KActionCollection *  actionCollection,
const QString &  actionName = QString() 
)

Creates an undo action with the default KDE shortcut and icon and adds it to actionCollection.

Parameters
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 56 of file kundostack.cpp.


The documentation for this class was generated from the following files:
  • kundostack.h
  • kundostack.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal