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

KDEUI

Public Slots | Signals | Public Member Functions | Properties | List of all members
KShortcutWidget Class Reference

#include <kshortcutwidget.h>

Inheritance diagram for KShortcutWidget:
Inheritance graph
[legend]

Public Slots

void applyStealShortcut ()
 
void clearShortcut ()
 
void setShortcut (const KShortcut &cut)
 

Signals

void shortcutChanged (const KShortcut &cut)
 

Public Member Functions

 KShortcutWidget (QWidget *parent=0)
 
 ~KShortcutWidget ()
 
bool isModifierlessAllowed ()
 
void setCheckActionCollections (const QList< KActionCollection * > &actionCollections)
 
void setCheckActionList (const QList< QAction * > &checkList)
 
void setClearButtonsShown (bool show)
 
void setModifierlessAllowed (bool allow)
 
KShortcut shortcut () const
 

Properties

bool modifierlessAllowed
 

Detailed Description

kshortcutwidget.png
KDE Shortcut Widget

Definition at line 31 of file kshortcutwidget.h.

Constructor & Destructor Documentation

KShortcutWidget::KShortcutWidget ( QWidget *  parent = 0)

Definition at line 41 of file kshortcutwidget.cpp.

KShortcutWidget::~KShortcutWidget ( )

Definition at line 54 of file kshortcutwidget.cpp.

Member Function Documentation

void KShortcutWidget::applyStealShortcut ( )
slot

Actually remove the shortcut that the user wanted to steal, from the action that was using it.

To be called before you apply your changes. No shortcuts are stolen until this function is called.

Definition at line 103 of file kshortcutwidget.cpp.

void KShortcutWidget::clearShortcut ( )
slot

Definition at line 126 of file kshortcutwidget.cpp.

bool KShortcutWidget::isModifierlessAllowed ( )

Definition at line 67 of file kshortcutwidget.cpp.

void KShortcutWidget::setCheckActionCollections ( const QList< KActionCollection * > &  actionCollections)

Set a list of action collections to check against for conflictuous shortcut.

If there is a conflictuous shortcut with a KAction, and that his shortcut can be configured (KAction::isShortcutConfigurable() returns true) the user will be prompted for eventually steal the shortcut from this action

Global shortcuts are automatically checked for conflicts

Don't forget to call applyStealShortcut to actually steal the shortcut.

Since
4.1

Definition at line 96 of file kshortcutwidget.cpp.

void KShortcutWidget::setCheckActionList ( const QList< QAction * > &  checkList)
Deprecated:
since 4.1 Use setCheckActionCollections so that KShortcutWidget knows in which action collection to call the writeSettings method after stealing a shortcut from an action.

Definition at line 89 of file kshortcutwidget.cpp.

void KShortcutWidget::setClearButtonsShown ( bool  show)

Definition at line 73 of file kshortcutwidget.cpp.

void KShortcutWidget::setModifierlessAllowed ( bool  allow)

Definition at line 60 of file kshortcutwidget.cpp.

void KShortcutWidget::setShortcut ( const KShortcut &  cut)
slot

Definition at line 111 of file kshortcutwidget.cpp.

KShortcut KShortcutWidget::shortcut ( ) const

Definition at line 80 of file kshortcutwidget.cpp.

void KShortcutWidget::shortcutChanged ( const KShortcut &  cut)
signal

Property Documentation

bool KShortcutWidget::modifierlessAllowed
readwrite

Definition at line 34 of file kshortcutwidget.h.


The documentation for this class was generated from the following files:
  • kshortcutwidget.h
  • kshortcutwidget.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:18 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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