mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-10 06:04:12 +02:00
Settings files: leave out dialog sizes, trackpad gestures with controls
- Dialog sizes and positions (dialoggeometry/...) describe this computer, like the other window layout keys: no longer saved to a settings file, and kept when one is loaded. - The trackpad gestures setting (diagramview/gestures) is in the part for toolbars, shortcuts and gestures rather than all other settings. - Loading only the defaults for new projects now says it is done. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+6
-1
@@ -2305,7 +2305,7 @@ QString partLabel(ConfigProfile::Part part)
|
||||
{
|
||||
switch (part) {
|
||||
case ConfigProfile::Part::Controls:
|
||||
return QETApp::tr("Toolbars, keyboard shortcuts and mouse gestures");
|
||||
return QETApp::tr("Toolbars, keyboard shortcuts, mouse and trackpad gestures");
|
||||
case ConfigProfile::Part::NewProject:
|
||||
return QETApp::tr("Defaults for new projects: folio, title block, "
|
||||
"wires, numbering");
|
||||
@@ -2505,6 +2505,11 @@ void QETApp::importConfiguration()
|
||||
if (!restart) {
|
||||
QSettings live_settings;
|
||||
ConfigProfile::importFrom(file_settings, live_settings);
|
||||
QET::QetMessageBox::information(
|
||||
parent_widget,
|
||||
tr("Load settings", "message box title"),
|
||||
tr("The settings are loaded. They are used for the next "
|
||||
"new project."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user