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
eventFilter Method called to filter the event queue.
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

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

ShortcutDialog.eventFilter

eventFilter(watched, event)

Method called to filter the event queue.

watched
the QObject being watched
event
the event that occurred
Returns:
always 0

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.

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

Up