7 #include <unordered_map> 11 class HotkeyController;
21 std::vector<QStandardItem *> &row,
22 const std::shared_ptr<Hotkey> &original)
override;
26 std::vector<QStandardItem *> &row)
override;
28 virtual int beforeInsert(
const std::shared_ptr<Hotkey> &item,
29 std::vector<QStandardItem *> &row,
30 int proposedIndex)
override;
32 virtual void afterRemoved(
const std::shared_ptr<Hotkey> &item,
33 std::vector<QStandardItem *> &row,
39 std::tuple<int, int> getCurrentAndNextCategoryModelIndex(
40 const QString &category)
const;
42 std::unordered_map<QString, int> categoryCount_;
virtual void getRowFromItem(const std::shared_ptr< Hotkey > &item, std::vector< QStandardItem *> &row) override
Definition: HotkeyModel.cpp:21
Definition: HotkeyModel.hpp:13
Definition: Application.cpp:48
Definition: SignalVectorModel.hpp:15
virtual std::shared_ptr< Hotkey > getItemFromRow(std::vector< QStandardItem *> &row, const std::shared_ptr< Hotkey > &original) override
Definition: HotkeyModel.cpp:14
Definition: HotkeyController.hpp:22
HotkeyModel(QObject *parent)
Definition: HotkeyModel.cpp:8
virtual void afterRemoved(const std::shared_ptr< Hotkey > &item, std::vector< QStandardItem *> &row, int index) override
Definition: HotkeyModel.cpp:73
virtual int beforeInsert(const std::shared_ptr< Hotkey > &item, std::vector< QStandardItem *> &row, int proposedIndex) override
Definition: HotkeyModel.cpp:38