• Skip to content
  • Skip to link menu
KDE 4.5 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
Note: This is a reduced mirror of the KDE API documentation hosted by Michael Pyne.
 

KDEUI

KShortcutsEditorItem Class Reference

A QTreeWidgetItem that can handle KActions. More...

#include <kshortcutsdialog_p.h>

Inheritance diagram for KShortcutsEditorItem:

Inheritance graph
[legend]

List of all members.


Public Member Functions

void commit ()
virtual QVariant data (int column, int role=Qt::DisplayRole) const
bool isModified () const
bool isModified (uint column) const
QKeySequence keySequence (uint column) const
 KShortcutsEditorItem (QTreeWidgetItem *parent, KAction *action)
virtual bool operator< (const QTreeWidgetItem &other) const
void setKeySequence (uint column, const QKeySequence &seq)
void setNameBold (bool flag)
void setRockerGesture (const KRockerGesture &gst)
void setShapeGesture (const KShapeGesture &gst)
void undo ()
virtual ~KShortcutsEditorItem ()

Detailed Description

A QTreeWidgetItem that can handle KActions.

It provides undo, commit functionality for changes made. Changes are effective immediately. You have to commit them or they will be undone when deleting the item.

For internal use only.

Definition at line 265 of file kshortcutsdialog_p.h.


Constructor & Destructor Documentation

KShortcutsEditorItem::KShortcutsEditorItem ( QTreeWidgetItem *  parent,
KAction *  action 
)

Definition at line 34 of file kshortcutseditoritem.cpp.

KShortcutsEditorItem::~KShortcutsEditorItem (  )  [virtual]

Destructor.

Will undo pending changes. If you don't want that. Call commitChanges before

Definition at line 53 of file kshortcutseditoritem.cpp.


Member Function Documentation

void KShortcutsEditorItem::commit (  ) 

Commit the changes.

Definition at line 340 of file kshortcutseditoritem.cpp.

QVariant KShortcutsEditorItem::data ( int  column,
int  role = Qt::DisplayRole 
) const [virtual]

Definition at line 68 of file kshortcutseditoritem.cpp.

bool KShortcutsEditorItem::isModified (  )  const

Definition at line 62 of file kshortcutseditoritem.cpp.

bool KShortcutsEditorItem::isModified ( uint  column  )  const

Definition at line 279 of file kshortcutseditoritem.cpp.

QKeySequence KShortcutsEditorItem::keySequence ( uint  column  )  const

Definition at line 191 of file kshortcutseditoritem.cpp.

bool KShortcutsEditorItem::operator< ( const QTreeWidgetItem &  other  )  const [virtual]

Definition at line 184 of file kshortcutseditoritem.cpp.

void KShortcutsEditorItem::setKeySequence ( uint  column,
const QKeySequence &  seq 
)

Definition at line 208 of file kshortcutseditoritem.cpp.

void KShortcutsEditorItem::setNameBold ( bool  flag  )  [inline]

Definition at line 295 of file kshortcutsdialog_p.h.

void KShortcutsEditorItem::setRockerGesture ( const KRockerGesture &  gst  ) 

Definition at line 247 of file kshortcutseditoritem.cpp.

void KShortcutsEditorItem::setShapeGesture ( const KShapeGesture &  gst  ) 

Definition at line 237 of file kshortcutseditoritem.cpp.

void KShortcutsEditorItem::undo (  ) 

Undo the changes since the last commit.

Definition at line 311 of file kshortcutseditoritem.cpp.


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

KDEUI

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

Class Picker

kdelibs

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