Merge pull request #930 from ispyisail/feat/923-forum-auto-conductor-shortcut

List auto conductor creation in the Shortcuts page
This commit is contained in:
Laurent Trinques
2026-09-19 13:04:44 +02:00
committed by GitHub
+7
View File
@@ -390,6 +390,13 @@ void QETDiagramEditor::setUpActions()
if (ProjectView *pv = currentProjectView()) if (ProjectView *pv = currentProjectView())
pv->project()->setAutoConductor(ac); pv->project()->setAutoConductor(ac);
}); });
//Registered with no default sequence on purpose. This is a
//setting some people toggle constantly and others never touch,
//so it earns a place in the Shortcuts page rather than a key of
//its own taken from the ones still free. Asked for on the forum
//(viewtopic.php?pid=23296): "est il possible dans les raccourcis
//d'ajouter un pour création automatique de conducteur ?"
ShortcutManager::instance().registerAction(m_auto_conductor, "diagrameditor.auto_conductor", tr("Éditeur de schémas"), QKeySequence());
//AutoBreakConductor //AutoBreakConductor
m_auto_break_conductor = new QAction (QET::Icons::Conductor, tr("Coupure automatique de conducteur(s)","Tool tip of auto break conductor"), this); m_auto_break_conductor = new QAction (QET::Icons::Conductor, tr("Coupure automatique de conducteur(s)","Tool tip of auto break conductor"), this);