1 #ifndef BALL_VIEW_WIDGETS_SHORTCUTTABLEVIEW_H
2 #define BALL_VIEW_WIDGETS_SHORTCUTTABLEVIEW_H
4 #ifndef BALL_VIEW_KERNEL_COMMON_H
8 #ifndef BALL_VIEW_DIALOGS_EDITSINGLESHORTCUT_H
12 #include <QtWidgets/QTableView>
13 #include <QtWidgets/QItemDelegate>
14 #include <QtWidgets/QPushButton>
16 class QSortFilterProxyModel;
30 void setFilter(
const QString& filter);
33 void shortcutChanged();
37 void onClick(
const QModelIndex& index);
40 QSortFilterProxyModel* proxy_model_;
51 int rowCount(
const QModelIndex& parent = QModelIndex())
const;
52 int columnCount(
const QModelIndex& parent = QModelIndex())
const;
54 QVariant
data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const;
55 QVariant
headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
56 Qt::ItemFlags
flags(
const QModelIndex& index)
const;
57 bool isValid(
const QKeySequence& seq)
const;
58 bool setData(
const QModelIndex& index,
const QVariant&
data,
int role = Qt::EditRole);
66 #endif //BALL_VIEW_WIDGETS_SHORTCUTTABLEVIEW_H