mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-12 03:45:51 -05:00
Prefix shortcut names with menu path
This commit is contained in:
@@ -2271,7 +2271,12 @@ void MainWindow::initShortcutsEditor() {
|
||||
|
||||
connectSubEditorsToShortcutsEditor();
|
||||
|
||||
shortcutsEditor->setShortcutableObjects(shortcutableObjects());
|
||||
auto objectList = shortcutableObjects();
|
||||
for (auto *menu : findChildren<QMenu *>()) {
|
||||
if (!menu->objectName().isEmpty())
|
||||
objectList.append(qobject_cast<QObject *>(menu));
|
||||
}
|
||||
shortcutsEditor->setShortcutableObjects(objectList);
|
||||
}
|
||||
|
||||
void MainWindow::connectSubEditorsToShortcutsEditor() {
|
||||
|
||||
Reference in New Issue
Block a user