eric3.Preferences.ShortcutDialog

Module implementing a dialog for the configuration of a keyboard shortcut.

Classes

ShortcutDialog Class implementing a dialog for the configuration of a keyboard shortcut.

Functions

None

ShortcutDialog

Class implementing a dialog for the configuration of a keyboard shortcut.

Signals

shortcutChanged(QKeySequence)
emitted after the OK button was pressed

Derived from

ShortcutForm

Methods

ShortcutDialog Constructor
handleClear Private slot to handle the Clear button press.
handleOk Private slot to handle the OK button press.
handleTypeChanged Private slot to handle the change of the shortcuts type.
keyPressEvent Private method to handle a key press event.
setKeyLabelText Private method to set the text of a key label.
setKeys Public method to set the key to be configured.

ShortcutDialog (Constructor)

ShortcutDialog(parent = None, name = None, modal = 0, fl = 0)

Constructor

fl
The window flags.
modal
Flag indicating a modal dialog. (boolean)
name
The name of this dialog. (QString)
parent
The parent widget of this dialog. (QWidget)

ShortcutDialog.handleClear

handleClear()

Private slot to handle the Clear button press.

ShortcutDialog.handleOk

handleOk()

Private slot to handle the OK button press.

ShortcutDialog.handleTypeChanged

handleTypeChanged()

Private slot to handle the change of the shortcuts type.

ShortcutDialog.keyPressEvent

keyPressEvent(evt)

Private method to handle a key press event.

evt
the key event (QKeyEvent)

ShortcutDialog.setKeyLabelText

setKeyLabelText(txt)

Private method to set the text of a key label.

txt
text to be set (QString)

ShortcutDialog.setKeys

setKeys(key, alternateKey)

Public method to set the key to be configured.

alternateKey
alternate key sequence to be changed (QKeySequence)
key
key sequence to be changed (QKeySequence)

Up