comparison libgui/src/shortcut-manager.h @ 31691:fc3bc1402b0d

eliminate unnecessary table of keyboard shortcuts in shortcut_manager class * shortcut-manager.h, shortcut-manager.cc (shortcut_manager::m_action_hash): Delete data member and all uses. (shortcut_manager::set_shortcut, shortcut_manager::shortcut): Don't check m_action_hash for shortcut. Just use value from settings if it exists. (shortcut_manager::init): Don't store shortcut in m_action_hash.
author John W. Eaton <jwe@octave.org>
date Sat, 24 Dec 2022 14:54:52 -0500
parents deb553ac2c54
children 2422fb7f1e6c
comparison
equal deleted inserted replaced
31690:1a1f47f17ed4 31691:fc3bc1402b0d
156 QKeySequence m_default_sc; 156 QKeySequence m_default_sc;
157 }; 157 };
158 158
159 QList<shortcut_t> m_sc; 159 QList<shortcut_t> m_sc;
160 QHash<QString, int> m_shortcut_hash; 160 QHash<QString, int> m_shortcut_hash;
161 QHash<QString, int> m_action_hash;
162 QHash <QString, QTreeWidgetItem *> m_level_hash; 161 QHash <QString, QTreeWidgetItem *> m_level_hash;
163 QHash<int, QTreeWidgetItem *> m_index_item_hash; 162 QHash<int, QTreeWidgetItem *> m_index_item_hash;
164 QHash<QTreeWidgetItem *, int> m_item_index_hash; 163 QHash<QTreeWidgetItem *, int> m_item_index_hash;
165 164
166 QDialog *m_dialog; 165 QDialog *m_dialog;