From 2e7924a07d45c1d1468552f951dcd2f2dcc948fa Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Mon, 26 Sep 2022 22:14:18 -0400 Subject: Add a few basic settings items. Yes I stole qmp's settings design and silently relicensed the (largely identical) code. But who in the world cares, plus I'm the author of qmp anyway. --- qdeduper/mingui.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'qdeduper/mingui.hpp') diff --git a/qdeduper/mingui.hpp b/qdeduper/mingui.hpp index 3803eb7..5686c3e 100644 --- a/qdeduper/mingui.hpp +++ b/qdeduper/mingui.hpp @@ -25,6 +25,8 @@ class QStandardItemModel; class QToolBar; class FileScanner; class ImageItemDelegate; +class SettingsRegistry; +class PreferenceDialog; namespace fs = std::filesystem; @@ -44,7 +46,7 @@ private: QLabel *permamsg; QStatusBar *sb; QListView *lv; - QToolBar *tb; + QToolBar *tb = nullptr; std::map menuact; QList selhk; QStandardItemModel *im = nullptr; @@ -52,6 +54,8 @@ private: QProgressDialog *pd = nullptr; SignatureDB *sdb = nullptr; FileScanner *fsc = nullptr; + SettingsRegistry *sr = nullptr; + PreferenceDialog *prefdlg = nullptr; std::unordered_set marked; int sort_role; Qt::SortOrder sort_order; @@ -73,6 +77,7 @@ protected: bool eventFilter(QObject *obj, QEvent *ev) override; public: DeduperMainWindow(); + ~DeduperMainWindow(); void setup_menu(); void sort_reassign_hotkeys(); @@ -89,6 +94,7 @@ public Q_SLOTS: void update_actions(); void show_group(size_t gid); void show_marked(); + void apply_prefs(); Q_SIGNALS: void next(); void prev(); -- cgit v1.2.3