Fri, 01 Jul 2022 16:46:43 +0300
Fix right click to delete not really working properly
Instead of removing the point that had been added, it would remove
the point that is being drawn, which would cause it to overwrite the
previous point using the new point, causing a bit of a delay
16 | 1 | #pragma once |
2 | #include <QWidget> | |
3 | #include <QAbstractTableModel> | |
4 | ||
5 | class KeyboardShortcutsEditor : public QAbstractTableModel | |
6 | { | |
7 | Q_OBJECT | |
8 | public: | |
9 | enum Column | |
10 | { | |
11 | TitleColumn, | |
12 | ShortcutColumn, | |
13 | }; | |
14 | explicit KeyboardShortcutsEditor(QObject* subject, QObject* parent = nullptr); | |
15 | int rowCount(const QModelIndex&) const override; | |
16 | int columnCount(const QModelIndex&) const override; | |
17 | QVariant data(const QModelIndex& index, int role) const override; | |
18 | QVariant headerData(int section, Qt::Orientation orientation, int role) const override; | |
19 | private: | |
259
c27612f0eac0
- Made it build under Qt6
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
16
diff
changeset
|
20 | const std::vector<QAction*> actions; |
16 | 21 | }; |