1 #ifndef BALL_VIEW_WIDGETS_HOTKEY_TABLE_H
2 #define BALL_VIEW_WIDGETS_HOTKEY_TABLE_H
4 #ifndef BALL_VIEW_KERNEL_COMMON_H
8 #ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY
12 #ifndef BALL_VIEW_WIDGETS_PYWIDGET_H
16 #include <QtWidgets/QTableWidget>
17 #include <QtWidgets/QItemDelegate>
30 QWidget *createEditor(
QWidget *parent,
const QStyleOptionViewItem &option,
31 const QModelIndex &index)
const;
33 void setEditorData(
QWidget *editor,
const QModelIndex &index)
const;
34 void setModelData(
QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index)
const;
36 void updateEditorGeometry(
QWidget *editor,
37 const QStyleOptionViewItem &option,
const QModelIndex &index)
const;
41 QStringList sl_modifier_;
67 virtual bool getValue(
String& value)
const;
70 virtual bool setValue(
const String& value);
73 std::list<Hotkey> getContent()
const;
76 void setContent(
const std::list<Hotkey>& hotkeys);
81 virtual void addEmptyRow();
84 virtual void removeSelection();
89 virtual void appendHotkey(
const String& modif,
const String& F_key,
93 QStringList modifier_, keys_;
99 #endif //BALL_VIEW_WIDGETS_HOTKEY_TABLE_H