mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-02 16:44:16 +02:00
Conductor dock: turn it on in the preferences, off by default (#500)
Showing a selected conductor's properties in the selection-properties dock is now a preference, on the General page under Appearance: "Afficher les propriétés d'un conducteur sélectionné dans le panneau Propriétés de la sélection". It is off by default, so selecting a conductor does what it did before unless the user turns it on. This replaces the View-menu toggle, which defaulted to on; that entry is dropped in the merge with master. Same setting key (diagrameditor/conductor_properties_panel). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -117,11 +117,11 @@ PropertiesEditorWidget *PropertiesEditorFactory::propertiesEditor(
|
||||
{
|
||||
case Conductor::Type: //1001
|
||||
{
|
||||
//Feature toggle (#500): when disabled in the View menu, selecting a
|
||||
//conductor brings up nothing in the dock. Default enabled.
|
||||
//Off unless enabled in the preferences (General page): selecting
|
||||
//a conductor then brings up nothing in the dock, as before.
|
||||
if (!QSettings().value(
|
||||
QStringLiteral("diagrameditor/conductor_properties_panel"),
|
||||
true).toBool()) {
|
||||
false).toBool()) {
|
||||
return nullptr;
|
||||
}
|
||||
//Prototype (#500): single-conductor editing in the dock.
|
||||
|
||||
Reference in New Issue
Block a user