KXmlGui
kshortcutseditor.cpp
48KShortcutsEditor::KShortcutsEditor(KActionCollection *collection, QWidget *parent, ActionTypes actionType, LetterShortcuts allowLetterShortcuts)
56KShortcutsEditor::KShortcutsEditor(QWidget *parent, ActionTypes actionType, LetterShortcuts allowLetterShortcuts)
265void KShortcutsEditorPrivate::initGUI(KShortcutsEditor::ActionTypes types, KShortcutsEditor::LetterShortcuts allowLetterShortcuts)
290 delegate = new KShortcutsEditorDelegate(ui.list, allowLetterShortcuts == KShortcutsEditor::LetterShortcutsAllowed);
300 QObject::connect(delegate, &KShortcutsEditorDelegate::shortcutChanged, q, [this](const QVariant &newShortcut, const QModelIndex &index) {
304 QObject::connect(ui.searchFilter->searchLine(), &KTreeWidgetSearchLine::hiddenChanged, delegate, &KShortcutsEditorDelegate::hiddenBySearchLine);
341 qCCritical(DEBUG_KXMLGUI) << "Skipping action without name " << action->text() << "," << actionName << "!";
377 QList<QKeySequence> defaultShortcuts = act->property("defaultShortcuts").value<QList<QKeySequence>>();
380 QKeySequence alternate = defaultShortcuts.size() <= 1 ? QKeySequence() : defaultShortcuts.at(1);
396KShortcutsEditorItem *KShortcutsEditorPrivate::itemFromIndex(QTreeWidget *const w, const QModelIndex &index)
405QTreeWidgetItem *KShortcutsEditorPrivate::findOrMakeItem(QTreeWidgetItem *parent, const QString &name)
421void KShortcutsEditorPrivate::capturedShortcut(const QVariant &newShortcut, const QModelIndex &index)
436void KShortcutsEditorPrivate::changeKeyShortcut(KShortcutsEditorItem *item, uint column, const QKeySequence &capture)
469 QList<QKeySequence> sc = QKeySequence::listFromString(globalShortcutsGroup.readEntry(actionId, QString()));
487 QList<QKeySequence> sc = QKeySequence::listFromString(localShortcutsGroup.readEntry(actionId, QString()));
526 cursor.insertText(i18nc("header for an applications shortcut list", "Shortcuts for %1", QGuiApplication::applicationDisplayName()), headerFormat);
QString componentDisplayName() const
The display name for the associated component.
Definition kactioncollection.cpp:249
bool isEmpty() const
Returns whether the action collection is empty or not.
Definition kactioncollection.cpp:214
QList< QAction * > actions() const
Returns the list of QActions which belong to this action collection.
Definition kactioncollection.cpp:265
bool hasShortcut(const QAction *action) const
static KGlobalAccel * self()
QList< QKeySequence > defaultShortcut(const QAction *action) const
Widget for configuration of KAccel and KGlobalAccel.
Definition kshortcutseditor.h:50
void clearCollections()
Removes all action collections from the editor.
Definition kshortcutseditor.cpp:83
KShortcutsEditor(KActionCollection *collection, QWidget *parent, ActionTypes actionTypes=AllActions, LetterShortcuts allowLetterShortcuts=LetterShortcutsAllowed)
Constructor.
Definition kshortcutseditor.cpp:48
@ GlobalAction
Actions which are triggered by any keypress in the windowing system.
Definition kshortcutseditor.h:67
void addCollection(KActionCollection *, const QString &title=QString())
Insert an action collection, i.e.
Definition kshortcutseditor.cpp:91
void setActionTypes(ActionTypes actionTypes)
Sets the types of actions to display in this widget.
Definition kshortcutseditor.cpp:250
void allDefault()
Set all shortcuts to their default values (bindings).
Definition kshortcutseditor.cpp:235
void hiddenChanged(QTreeWidgetItem *, bool)
Q_SCRIPTABLE Q_NOREPLY void capture(double settleTime=0.0)
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
char * toString(const EngineQuery &query)
const QList< QKeySequence > & shortcut(StandardShortcut id)
NoEditTriggers
SelectItems
SingleSelection
QList< QKeySequence > shortcuts() const const
text
whatsThis
Accepted
Bold
GeneralFont
QFont systemFont(SystemFont type)
applicationDisplayName
ResizeToContents
void setSectionHidden(int logicalIndex, bool hide)
NativeText
QList< QKeySequence > listFromString(const QString &str, SequenceFormat format)
const_reference at(qsizetype i) const const
bool isEmpty() const const
qsizetype size() const const
int column() const const
bool isValid() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QList< T > findChildren(Qt::FindChildOptions options) const const
objectName
QVariant property(const char *name) const const
virtual int exec() override
bool contains(const QSet< T > &other) const const
iterator insert(const T &value)
QChar * data()
bool isEmpty() const const
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
DisplayRole
ItemIsSelectable
AscendingOrder
void setBottomMargin(qreal margin)
void setTopMargin(qreal margin)
void setFontWeight(int weight)
void insertHtml(const QString &html)
QTextTable * insertTable(int rows, int columns)
void insertText(const QString &text)
void print(QPagedPaintDevice *printer) const const
void setDefaultFont(const QFont &font)
FontSizeAdjustment
void setProperty(int propertyId, const QList< QTextLength > &value)
BorderStyle_Solid
void setBorder(qreal width)
void setBorderStyle(BorderStyle style)
QTextTableCell cellAt(const QTextCursor &cursor) const const
void insertRows(int index, int rows)
int rows() const const
void setFormat(const QTextTableFormat &format)
QTextCursor firstCursorPosition() const const
QTextCharFormat format() const const
void setFormat(const QTextCharFormat &format)
void setCellPadding(qreal padding)
void setCellSpacing(qreal spacing)
void setHeaderRowCount(int count)
singleShot
QTreeWidgetItem * itemFromIndex(const QModelIndex &index) const const
QTreeWidgetItem * child(int index) const const
int childCount() const const
Qt::ItemFlags flags() const const
void setFlags(Qt::ItemFlags flags)
void setText(int column, const QString &text)
QString text(int column) const const
int type() const const
NoChildren
void * data()
bool isValid() const const
bool toBool() const const
QString toString() const const
T value() const const
void setUpdatesEnabled(bool enable)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:54:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:54:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.