From e706c114a5aac79976c7e9c617d948cf0f5d8772 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Mon, 12 Sep 2022 00:35:12 -0400 Subject: Implement hotkeys with QActions. --- mingui/mingui.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mingui/mingui.hpp') diff --git a/mingui/mingui.hpp b/mingui/mingui.hpp index aa71596..4efb534 100644 --- a/mingui/mingui.hpp +++ b/mingui/mingui.hpp @@ -7,6 +7,7 @@ #include #include +#include class QHBoxLayout; class QLabel; @@ -30,6 +31,7 @@ private: QStatusBar *sb; QScrollArea *sa; QListView *lw; + QList selhk; QStandardItemModel *im = nullptr; ImageItemDelegate *id = nullptr; std::size_t ngroups, curgroup; @@ -45,8 +47,6 @@ private: std::unordered_set marked; std::vector current_set; protected: - void keyPressEvent(QKeyEvent *e) override; - void keyReleaseEvent(QKeyEvent *e) override; void resizeEvent(QResizeEvent *e) override; void closeEvent(QCloseEvent *e) override; public: -- cgit v1.2.3