From db562629245ecca9e71b83c980f2ed7e3dc9fc31 Mon Sep 17 00:00:00 2001 From: ispyisail Date: Sat, 26 Sep 2026 21:35:47 +1200 Subject: [PATCH] Register the drawing tools so the command search finds them Ajouter une ligne, un rectangle, une ellipse... had no ShortcutManager id, so the command search could not list them. Give each one an id with no default key; they can also be bound in the Shortcuts page now. Co-Authored-By: Claude Opus 5.5 --- sources/qetdiagrameditor.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sources/qetdiagrameditor.cpp b/sources/qetdiagrameditor.cpp index cfd10a222..a4255a1b5 100644 --- a/sources/qetdiagrameditor.cpp +++ b/sources/qetdiagrameditor.cpp @@ -949,6 +949,13 @@ void QETDiagramEditor::setUpActions() add_path->setCheckable(true); connect(&m_add_item_actions_group, &QActionGroup::triggered, this, &QETDiagramEditor::addItemGroupTriggered); + //No default key, but an id: they can then be found by the command + //search and bound in the Shortcuts page, like every other command. + for (QAction *action : m_add_item_actions_group.actions()) { + ShortcutManager::instance().registerAction( + action, "diagrameditor.add_" + action->data().toString(), + tr("Éditeur de schémas"), QKeySequence()); + } //Depth action m_depth_action_group = QET::depthActionGroup(this);