• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

KUndoStack Class Reference

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

#include <kundostack.h>

Inheritance diagram for KUndoStack:
QUndoStack

List of all members.

Public Member Functions

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

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 ( QObject *  parent = 0  ) 

Constructs a KUndoStack with parent as parent.

Parameters:
parent parent of the object

Definition at line 32 of file kundostack.cpp.


Member Function Documentation

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

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


The documentation for this class was generated from the following files:
  • kundostack.h
  • kundostack.cpp

KDEUI

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal