• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 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:
QWidget

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

KDE Shortcut Widget

Definition at line 31 of file kshortcutwidget.h.

Constructor & Destructor Documentation

◆ KShortcutWidget()

KShortcutWidget::KShortcutWidget ( QWidget *  parent = 0)

Definition at line 41 of file kshortcutwidget.cpp.

◆ ~KShortcutWidget()

KShortcutWidget::~KShortcutWidget ( )

Definition at line 54 of file kshortcutwidget.cpp.

Member Function Documentation

◆ applyStealShortcut

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.

◆ clearShortcut

void KShortcutWidget::clearShortcut ( )
slot

Definition at line 126 of file kshortcutwidget.cpp.

◆ isModifierlessAllowed()

bool KShortcutWidget::isModifierlessAllowed ( )

Definition at line 67 of file kshortcutwidget.cpp.

◆ setCheckActionCollections()

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.

◆ setCheckActionList()

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.

◆ setClearButtonsShown()

void KShortcutWidget::setClearButtonsShown ( bool  show)

Definition at line 73 of file kshortcutwidget.cpp.

◆ setModifierlessAllowed()

void KShortcutWidget::setModifierlessAllowed ( bool  allow)

Definition at line 60 of file kshortcutwidget.cpp.

◆ setShortcut

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

Definition at line 111 of file kshortcutwidget.cpp.

◆ shortcut()

KShortcut KShortcutWidget::shortcut ( ) const

Definition at line 80 of file kshortcutwidget.cpp.

◆ shortcutChanged

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

Property Documentation

◆ modifierlessAllowed

bool KShortcutWidget::modifierlessAllowed
readwrite

Definition at line 1 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-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