Kirigami2
mnemonicattached.cpp
16QHash<QKeySequence, MnemonicAttached *> MnemonicAttached::s_sequenceToObject = QHash<QKeySequence, MnemonicAttached *>();
162 connect(&MnemonicEventFilter::instance(), &MnemonicEventFilter::altPressed, this, &MnemonicAttached::onAltPressed);
163 connect(&MnemonicEventFilter::instance(), &MnemonicEventFilter::altReleased, this, &MnemonicAttached::onAltReleased);
313 m_mnemonicLabel.replace(QRegularExpression(QLatin1String("\\&([^\\&])")), QStringLiteral("\\1"));
334 m_richTextLabel.replace(QRegularExpression(QLatin1String("\\&([^\\&])")), QStringLiteral("\\1"));
338 if (mnemonicPos > -1 && (mnemonicPos == 0 || m_mnemonicLabel[mnemonicPos - 1] != QLatin1Char('&'))) {
This Attached property is used to calculate automated keyboard sequences to trigger actions based upo...
Definition mnemonicattached.h:31
QString richTextLabel
The user-visible final label, which will have the shortcut letter underlined, such as "<u>O</u>k".
Definition mnemonicattached.h:46
QString label
The label of the control we want to compute a mnemonic for, instance "Label:" or "&Ok".
Definition mnemonicattached.h:40
bool enabled
Only if true this mnemonic will be considered for the global assignment default: true.
Definition mnemonicattached.h:58
bool active
True when the user is pressing alt and the accelerators should be shown.
Definition mnemonicattached.h:77
QString mnemonicLabel
The label with an "&" mnemonic in the place which will have the shortcut assigned,...
Definition mnemonicattached.h:52
MnemonicAttached::ControlType controlType
The type of control this mnemonic is attached: different types of controls have different importance ...
Definition mnemonicattached.h:64
QKeySequence sequence
The final key sequence assigned, if any: it will be Alt+alphanumeric char.
Definition mnemonicattached.h:69
QString label(StandardShortcut id)
bool isLetterOrNumber(char32_t ucs4)
KeyPress
bool remove(const Key &key)
T value(const Key &key) const const
int key() const const
bool isEmpty() const const
const_iterator cend() const const
void clear()
const_iterator constBegin() const const
const_iterator constEnd() const const
bool contains(const Key &key) const const
bool isEmpty() const const
Q_EMITQ_EMIT
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
virtual bool event(QEvent *e)
void installEventFilter(QObject *filterObj)
QObject * parent() const const
T qobject_cast(QObject *object)
QWindow * renderWindowFor(QQuickWindow *win, QPoint *offset)
const QChar at(qsizetype position) const const
qsizetype indexOf(QChar ch, qsizetype from, Qt::CaseSensitivity cs) const const
bool isEmpty() const const
QString left(qsizetype n) const const
qsizetype length() const const
QString mid(qsizetype position, qsizetype n) const const
QString & replace(QChar before, QChar after, Qt::CaseSensitivity cs)
Key_Alt
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:05:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:05:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.