From ffc70008a51db72f4cfcfbf1e82753f96cb23d95 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 2 Oct 2022 19:46:19 -0400 Subject: Implement toolbar customization. --- qdeduper/preferencedialog.hpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'qdeduper/preferencedialog.hpp') diff --git a/qdeduper/preferencedialog.hpp b/qdeduper/preferencedialog.hpp index 78e78c5..b8b2d15 100644 --- a/qdeduper/preferencedialog.hpp +++ b/qdeduper/preferencedialog.hpp @@ -16,7 +16,9 @@ class QTabWidget; class QGridLayout; class QDialogButtonBox; class QTableView; +class QListView; class QStandardItemModel; +class QSortFilterProxyModel; class ModifierEdit : public QPushButton { @@ -38,7 +40,8 @@ class PreferenceDialog : public QDialog public: PreferenceDialog(SettingsRegistry *sr, QWidget *parent = nullptr); void setup_widgets(); - void set_hkactions(int tab, std::map defmap, std::map actmap); + void set_hkactions(int tab, const std::vector &actlist, const std::map &actmap); + void set_toolbaractions(int tab, const std::map &actmap); void load_widget_status(); void save_widget_status(); @@ -54,7 +57,12 @@ private: QDialogButtonBox *bb; QTableView *hktv = nullptr; QStandardItemModel *hkim = nullptr; - std::map defmap; + QListView *tbaav = nullptr; + QStandardItemModel *tbaam = nullptr; + QSortFilterProxyModel *tbapm = nullptr; + QListView *tbeav = nullptr; + QStandardItemModel *tbeam = nullptr; + std::vector actlist; std::map actmap; std::vector mes; }; -- cgit v1.2.3