diff libgui/src/qt-interpreter-events.cc @ 31621:0645ea65ca6b

handle icons and themes in gui_settings class, not resource_manager * resource-manager.h, resource-manager.cc (resource_manager::config_icon_theme, resource_manager::icon): Move funtcions to gui-settings.h and gui-settings.cc. * Canvas.cc, QTerminal.cc, documentation-bookmarks.cc, documentation.cc, dw-main-window.cc, files-dock-widget.cc, find-files-dialog.cc, gui-settings.cc, gui-settings.h, history-dock-widget.cc, file-editor.cc, main-window.cc, octave-dock-widget.cc, octave-qobject.cc, qt-interpreter-events.cc, resource-manager.cc, resource-manager.h, variable-editor.cc: Change all uses.
author John W. Eaton <jwe@octave.org>
date Fri, 02 Dec 2022 18:43:12 -0500
parents ad014fc78bd6
children 9034cf663768
line wrap: on
line diff
--- a/libgui/src/qt-interpreter-events.cc	Fri Dec 02 18:31:30 2022 -0500
+++ b/libgui/src/qt-interpreter-events.cc	Fri Dec 02 18:43:12 2022 -0500
@@ -438,8 +438,9 @@
   {
     QMutexLocker autolock (&m_mutex);
 
-    resource_manager& rmgr = m_octave_qobj.get_resource_manager ();
-    m_result = QVariant::fromValue (rmgr.icon (name));
+    gui_settings settings;
+
+    m_result = QVariant::fromValue (settings.icon (name));
 
     wake_all ();
   }