Konsole
KeyBindingEditor.cpp
Go to the documentation of this file.
189 KeyboardTranslator::Entry existing = key->data(Qt::UserRole).value<KeyboardTranslator::Entry>();
A converter which maps between key sequences pressed by the user and the character strings which shou...
Definition: KeyboardTranslator.h:52
Qt::KeyboardModifiers modifiers() const
Type type() const
virtual bool eventFilter(QObject *watched, QEvent *event)
Definition: KeyBindingEditor.cpp:113
void removeEntry(const Entry &entry)
Removes an entry from the table.
Definition: KeyboardTranslator.cpp:675
QString description() const
Returns the descriptive name of this keyboard translator.
Definition: KeyboardTranslator.cpp:641
QString resultToString(bool expandWildCards=false, Qt::KeyboardModifiers modifiers=Qt::NoModifier) const
Returns this entry's result ( ie.
Definition: KeyboardTranslator.cpp:577
const T & at(int i) const
Represents an association between a key sequence pressed by the user and the character sequence and c...
Definition: KeyboardTranslator.h:121
T value() const
QList< Entry > entries() const
Returns a list of all entries in the translator.
Definition: KeyboardTranslator.cpp:656
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
virtual QVariant data(int role) const
static KeyboardTranslator::Entry createEntry(const QString &condition, const QString &result)
Parses a condition and result string for a translator entry and produces a keyboard translator entry...
Definition: KeyboardTranslator.cpp:305
KeyboardTranslator * translator() const
Returns the modified translator describing the changes to the bindings and other settings which the u...
Definition: KeyBindingEditor.cpp:181
virtual void setData(int role, const QVariant &value)
virtual ~KeyBindingEditor()
Definition: KeyBindingEditor.cpp:65
int count(const T &value) const
void append(const T &value)
void setDescription(const QString &description)
Sets the text of the editor's description field.
Definition: KeyBindingEditor.cpp:149
Indicates that the terminal is in 'ANSI' mode.
Definition: KeyboardTranslator.h:74
int column() const
void setup(const KeyboardTranslator *translator)
Initializes the dialog with the bindings and other settings from the specified translator.
Definition: KeyBindingEditor.cpp:167
QString text() const
Entry findEntry(int keyCode, Qt::KeyboardModifiers modifiers, States state=NoState) const
Looks for an entry in this keyboard translator which matches the given key code, keyboard modifiers a...
Definition: KeyboardTranslator.cpp:680
int row() const
QString description() const
Returns the text of the editor's description field.
Definition: KeyBindingEditor.cpp:162
int key() const
void accept()
bool contains(const T &value) const
QVariant fromValue(const T &value)
QString text() const
KeyBindingEditor(QWidget *parent=0)
Constructs a new key bindings editor with the specified parent.
Definition: KeyBindingEditor.cpp:32
QString conditionToString() const
Returns the key code and modifiers associated with this entry as a QKeySequence.
Definition: KeyboardTranslator.cpp:599
void replaceEntry(const Entry &existing, const Entry &replacement)
Replaces an entry in the translator.
Definition: KeyboardTranslator.cpp:667
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
virtual bool event(QEvent *event)
void setDescription(const QString &description)
Sets the descriptive name of this keyboard translator.
Definition: KeyboardTranslator.cpp:636
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.