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 <QtGui/QTableView>
13 #include <QtGui/QItemDelegate>
14 #include <QtGui/QPushButton>
16 class QSortFilterProxyModel;
30 void setFilter(
const QString& filter);
33 void shortcutChanged();
39 void onClick(
const QModelIndex& index);
42 QSortFilterProxyModel* proxy_model_;
53 int rowCount(
const QModelIndex& parent = QModelIndex())
const;
54 int columnCount(
const QModelIndex& parent = QModelIndex())
const;
56 QVariant
data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const;
57 QVariant
headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
58 Qt::ItemFlags
flags(
const QModelIndex& index)
const;
59 bool isValid(
const QKeySequence& seq)
const;
60 bool setData(
const QModelIndex& index,
const QVariant& data,
int role = Qt::EditRole);
68 #endif //BALL_VIEW_WIDGETS_SHORTCUTTABLEVIEW_H
Qt::ItemFlags flags(const QModelIndex &index) const
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
int columnCount(const QModelIndex &parent=QModelIndex()) const
int rowCount(const QModelIndex &parent=QModelIndex()) const
bool setData(const QModelIndex &index, const QVariant &data, int role=Qt::EditRole)
ShortcutTableModel(ShortcutRegistry *reg)
bool isValid(const QKeySequence &seq) const