diff options
author | Chris Xiong <chirs241097@gmail.com> | 2022-10-02 19:46:19 -0400 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2022-10-02 19:46:19 -0400 |
commit | ffc70008a51db72f4cfcfbf1e82753f96cb23d95 (patch) | |
tree | 02c0566e53dfb4ab6d0150ec420a0f7b78334125 /qdeduper/preferencedialog.hpp | |
parent | fc7f2c61537677c99f76ad301add108d9e0e96c3 (diff) | |
download | deduper-ffc70008a51db72f4cfcfbf1e82753f96cb23d95.tar.xz |
Implement toolbar customization.
Diffstat (limited to 'qdeduper/preferencedialog.hpp')
-rw-r--r-- | qdeduper/preferencedialog.hpp | 12 |
1 files changed, 10 insertions, 2 deletions
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<std::string, QKeySequence> defmap, std::map<std::string, QAction*> actmap); + void set_hkactions(int tab, const std::vector<std::string> &actlist, const std::map<std::string, QAction*> &actmap); + void set_toolbaractions(int tab, const std::map<std::string, QAction*> &actmap); void load_widget_status(); void save_widget_status(); @@ -54,7 +57,12 @@ private: QDialogButtonBox *bb; QTableView *hktv = nullptr; QStandardItemModel *hkim = nullptr; - std::map<std::string, QKeySequence> defmap; + QListView *tbaav = nullptr; + QStandardItemModel *tbaam = nullptr; + QSortFilterProxyModel *tbapm = nullptr; + QListView *tbeav = nullptr; + QStandardItemModel *tbeam = nullptr; + std::vector<std::string> actlist; std::map<std::string, QAction*> actmap; std::vector<ModifierEdit*> mes; }; |