diff libgui/src/gui-settings.h @ 33375:a45ccf01d41b

use different widget geometry setting when widget launched from cli * gui-settings.h: new constant for settings key extension in order to distinguish widget geometry settings with and without gui * octave-dock-widget.cc (handle_settings): if no main window exists, extend the name of the geometry settings keys; (save_settings): dito
author Torsten Lilge <ttl-octave@mailbox.org>
date Thu, 11 Apr 2024 20:52:32 +0200
parents 689d4d069bbf
children 3ec6fcce7715
line wrap: on
line diff
--- a/libgui/src/gui-settings.h	Thu Apr 11 18:24:08 2024 +0200
+++ b/libgui/src/gui-settings.h	Thu Apr 11 20:52:32 2024 +0200
@@ -221,6 +221,9 @@
 // Some constants used in the preferences of several widgets and therefore
 // defined globally here
 
+// Constants for distinguishing between full GUI and dockwidgets initiated
+// from the command line
+const QString settings_no_mainwin ("__no_mainwin");
 // Constants for handling different color schemes
 const QColor settings_color_no_change (255, 0, 255);
 const QStringList settings_color_modes_ext (QStringList () << "" << "_2");