aboutsummaryrefslogtreecommitdiff
path: root/mingui/mingui.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-12 00:35:12 -0400
committerGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-12 00:35:12 -0400
commite706c114a5aac79976c7e9c617d948cf0f5d8772 (patch)
tree6350a9fdb195098fefc843c75b6ac0fd6e56e1ad /mingui/mingui.hpp
parentc87d3baea33ced4fe224b94ae5f1ab1a39ebc3e9 (diff)
downloaddeduper-e706c114a5aac79976c7e9c617d948cf0f5d8772.tar.xz
Implement hotkeys with QActions.
Diffstat (limited to 'mingui/mingui.hpp')
-rw-r--r--mingui/mingui.hpp4
1 files changed, 2 insertions, 2 deletions
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 <unordered_set>
#include <QWidget>
+#include <QList>
class QHBoxLayout;
class QLabel;
@@ -30,6 +31,7 @@ private:
QStatusBar *sb;
QScrollArea *sa;
QListView *lw;
+ QList<QAction*> selhk;
QStandardItemModel *im = nullptr;
ImageItemDelegate *id = nullptr;
std::size_t ngroups, curgroup;
@@ -45,8 +47,6 @@ private:
std::unordered_set<fs::path> marked;
std::vector<fs::path> current_set;
protected:
- void keyPressEvent(QKeyEvent *e) override;
- void keyReleaseEvent(QKeyEvent *e) override;
void resizeEvent(QResizeEvent *e) override;
void closeEvent(QCloseEvent *e) override;
public: