Kirigami2
mnemonicattached.cpp
12 QHash<QKeySequence, MnemonicAttached *> MnemonicAttached::s_sequenceToObject = QHash<QKeySequence, MnemonicAttached *>();
297 m_richTextLabel.replace(QRegularExpression(QLatin1String("\\&([^\\&])")), QStringLiteral("\\1"));
302 if (mnemonicPos > -1 && (mnemonicPos == 0 || m_mnemonicLabel[mnemonicPos - 1] != QLatin1Char('&'))) {
void removeEventFilter(QObject *obj)
KeyPress
bool active
True when the user is pressing alt and the accelerators should be shown.
Definition: mnemonicattached.h:73
const T value(const Key &key, const T &defaultValue) const const
QQuickWindow * window() const const
bool isLetterOrNumber() const const
void windowChanged(QQuickWindow *window)
bool enabled
Only if true this mnemonic will be considered for the global assignment default: true.
Definition: mnemonicattached.h:54
QMap::const_iterator constEnd() const const
void installEventFilter(QObject *filterObj)
QString label
The label of the control we want to compute a mnemonic for, instance "Label:" or "&Ok".
Definition: mnemonicattached.h:36
int length() const const
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const const
Key_Alt
QString richTextLabel
The user-visible final label, which will have the shortcut letter underlined, such as "<u>O</u>k".
Definition: mnemonicattached.h:42
QString & replace(int position, int n, QChar after)
QString label(StandardShortcut id)
QWindow * renderWindowFor(QQuickWindow *win, QPoint *offset)
QString mnemonicLabel
The label with an "&" mnemonic in the place which will have the shortcut assigned,...
Definition: mnemonicattached.h:48
This Attached property is used to calculate automated keyboard sequences to trigger actions based upo...
Definition: mnemonicattached.h:29
int key() const const
QString left(int n) const const
QEvent::Type type() const const
const QChar at(int position) const const
QKeySequence sequence
The final key sequence assigned, if any: it will be Alt+alphanumeric char.
Definition: mnemonicattached.h:65
KJOBWIDGETS_EXPORT QWidget * window(KJob *job)
QString mid(int position, int n) const const
MnemonicAttached::ControlType controlType
The type of control this mnemonic is attached: different types of controls have different importance ...
Definition: mnemonicattached.h:60
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Jan 29 2023 04:11:03 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Jan 29 2023 04:11:03 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.