15#ifndef KISSHORTCUTSEDITOR_P
16#define KISSHORTCUTSEDITOR_P
20#include <ktreewidgetsearchline.h>
25#include "ui_KisShortcutsDialog.h"
53 QTreeWidgetItem *
findOrMakeItem(QTreeWidgetItem *parent,
const QString &name);
87 Ui::KisShortcutsDialog
ui;
102 return QTreeWidget::itemFromIndex(index);
106 return QTreeWidget::indexFromItem(item, column);
133 QVariant
data(
int column,
int role = Qt::DisplayRole)
const override;
134 bool operator<(
const QTreeWidgetItem &other)
const override;
QAction * m_action
The action this item is responsible for.
void commit()
Commit the changes.
void undo()
Undo the changes since the last commit.
QList< QKeySequence > * m_oldLocalShortcut
The original shortcuts before user changes. 0 means no change.
~KisShortcutsEditorItem() override
Destructor will erase unsaved changes.
void setNameBold(bool flag)
bool operator<(const QTreeWidgetItem &other) const override
bool m_isNameBold
Should the Name column be painted in bold?
QKeySequence keySequence(uint column) const
QString m_id
The action id. Needed for exporting and importing.
KisShortcutsEditorItem(QTreeWidgetItem *parent, QAction *action)
QCollator m_collator
The collator, for sorting.
void updateModified()
Recheck modified status - could have changed back to initial value.
QVariant data(int column, int role=Qt::DisplayRole) const override
QString m_actionNameInTable
The localized action name.
void setKeySequence(uint column, const QKeySequence &seq)
void capturedShortcut(const QVariant &, const QModelIndex &)
QList< KisKActionCollection * > actionCollections
void printShortcuts() const
KisShortcutsEditorDelegate * delegate
KisShortcutsEditor::ActionTypes actionTypes
Ui::KisShortcutsDialog ui
void initGUI(KisShortcutsEditor::ActionTypes actionTypes, KisShortcutsEditor::LetterShortcuts allowLetterShortcuts)
QTreeWidgetItem * findOrMakeItem(QTreeWidgetItem *parent, const QString &name)
void clearConfiguration()
hierarchyLevel
Represents the three hierarchies the dialog displays.
void appendToView(uint nList, const QString &title=QString())
bool addAction(QAction *action, QTreeWidgetItem *hier[], hierarchyLevel level)
void changeKeyShortcut(KisShortcutsEditorItem *item, uint column, const QKeySequence &capture)
void setActionTypes(KisShortcutsEditor::ActionTypes actionTypes)
KisShortcutsEditorPrivate(KisShortcutsEditor *q)
Widget for configuration of KAccel and KGlobalAccel.