changeset 33423:07f80a531690

maint: Merge stable to default.
author Markus Mützel <markus.muetzel@gmx.de>
date Wed, 17 Apr 2024 17:19:45 +0200
parents 3cf213d5b479 (current diff) 1edbab3fae48 (diff)
children fa2dfa9152c8
files libgui/src/files-dock-widget.cc libgui/src/files-dock-widget.h libgui/src/workspace-view.cc
diffstat 3 files changed, 28 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/etc/NEWS.9.md	Tue Apr 16 15:06:46 2024 -0400
+++ b/etc/NEWS.9.md	Wed Apr 17 17:19:45 2024 +0200
@@ -22,6 +22,10 @@
   (bug #65518).
 - Set `DontUseNativeDialog` flag as first property in `QFileDialog`.
 - Explicitly raise non-modal message boxes ensuring visibility.
+- Save and restore splitter state of documentation widget.
+- Allow executing new files from built-in editor with F5 (bug #65548).
+- Allow unbinding GUI shortcuts (bug #65580).
+- Fix restoring headers in file browser and workspace view (bug #65030).
 
 ### Build system / Tests
 
@@ -33,8 +37,8 @@
 - Update metainfo.xml with new fields for AppStream 1.0 (bug #65355).
 - Show result of check for `std::pmr::polymorphic_allocator` in configure
   summary.
-- Run test for polymorphic allocators if possible instead of a simple build
-  check.
+- Run test program for polymorphic allocators if possible instead of a simple
+  build check.
 
 ### Documentation
 
@@ -44,7 +48,7 @@
 - Add example to Minimizers section on using anonymous functions to pass
   examples to functions called by minimizer functions (`fminsearch`,
   `fminbnd`, `fminunc`).
-- Add application notes in `fminsearch`, `fminbnd`, `fminunc` indicated the
+- Add application notes in `fminsearch`, `fminbnd`, `fminunc` indicating the
   preferred way to pass parameters is through anonymous functions.
 - Update remaining copyright statements to 2024.
 
@@ -59,7 +63,7 @@
   removed in Octave 10.  The preferred, cross-platform compatible method of
   passing parameters to any of the minimization functions (including
   `fminsearch`, `fminbnd`, and `fminunc`) is through the use of Anonymous
-  Functions.  Specific examples of this can be found in the @ref{Minimizers}
+  Functions.  Specific examples of this can be found in the "Minimizers"
   section of the GNU Octave manual.
 
 
--- a/libgui/src/files-dock-widget.cc	Tue Apr 16 15:06:46 2024 -0400
+++ b/libgui/src/files-dock-widget.cc	Wed Apr 17 17:19:45 2024 +0200
@@ -484,6 +484,16 @@
 }
 
 void
+files_dock_widget::restore_header_state ()
+{
+  gui_settings settings;
+
+  if (settings.contains (fb_column_state.settings_key ()))
+    m_file_tree_view->header ()->restoreState
+      (settings.value (fb_column_state.settings_key ()).toByteArray ());
+}
+
+void
 files_dock_widget::save_settings ()
 {
   gui_settings settings;
--- a/libgui/src/workspace-view.cc	Tue Apr 16 15:06:46 2024 -0400
+++ b/libgui/src/workspace-view.cc	Wed Apr 17 17:19:45 2024 +0200
@@ -169,6 +169,16 @@
 }
 
 void
+workspace_view::restore_header_state ()
+{
+  gui_settings settings;
+
+  if (settings.contains (ws_column_state.settings_key ()))
+    m_view->horizontalHeader ()->restoreState
+      (settings.value (ws_column_state.settings_key ()).toByteArray ());
+}
+
+void
 workspace_view::setModel (workspace_model *model)
 {
   m_filter_model.setSourceModel (model);