20 #ifndef SHORTCUTSDIALOG_HPP
21 #define SHORTCUTSDIALOG_HPP
23 #include <QKeySequence>
24 #include <QModelIndex>
25 #include <QSortFilterProxyModel>
27 #include "StelDialog.hpp"
30 class Ui_shortcutsDialogForm;
33 class StelShortcutGroup;
36 class QStandardItemModel;
51 bool filterAcceptsRow(
int source_row,
52 const QModelIndex &source_parent)
const;
88 void restoreDefaultShortcuts();
89 void updateTreeData();
97 static bool itemIsEditable(QStandardItem *item);
107 QStandardItem* updateGroup(StelShortcutGroup* group);
110 QStandardItem* findItemByData(QVariant value,
int role,
int column = 0);
116 QList<QStandardItem*> collisionItems;
118 Ui_shortcutsDialogForm *ui;
120 QStandardItemModel* mainModel;
124 void setModelHeader();
127 #endif // SHORTCUTSDIALOG_HPP