Mercurial > octave
comparison libgui/src/find-files-dialog.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 | ca7d58406f82 |
comparison
equal
deleted
inserted
replaced
31620:6dfaaf8ecf3b | 31621:0645ea65ca6b |
---|---|
55 namespace octave | 55 namespace octave |
56 { | 56 { |
57 find_files_dialog::find_files_dialog (QWidget *p, base_qobject& oct_qobj) | 57 find_files_dialog::find_files_dialog (QWidget *p, base_qobject& oct_qobj) |
58 : QDialog (p), m_octave_qobj (oct_qobj) | 58 : QDialog (p), m_octave_qobj (oct_qobj) |
59 { | 59 { |
60 resource_manager& rmgr = m_octave_qobj.get_resource_manager (); | 60 gui_settings settings; |
61 | 61 |
62 setWindowTitle (tr ("Find Files")); | 62 setWindowTitle (tr ("Find Files")); |
63 setWindowIcon (rmgr.icon ("edit-find")); | 63 setWindowIcon (settings.icon ("edit-find")); |
64 | 64 |
65 m_dir_iterator = nullptr; | 65 m_dir_iterator = nullptr; |
66 | 66 |
67 m_timer = new QTimer (this); | 67 m_timer = new QTimer (this); |
68 connect (m_timer, &QTimer::timeout, | 68 connect (m_timer, &QTimer::timeout, |
69 this, &find_files_dialog::look_for_files); | 69 this, &find_files_dialog::look_for_files); |
70 | |
71 gui_settings settings; | |
72 | 70 |
73 QLabel *file_name_label = new QLabel (tr ("Named:")); | 71 QLabel *file_name_label = new QLabel (tr ("Named:")); |
74 m_file_name_edit = new QLineEdit; | 72 m_file_name_edit = new QLineEdit; |
75 m_file_name_edit->setToolTip (tr ("Enter the filename search expression")); | 73 m_file_name_edit->setToolTip (tr ("Enter the filename search expression")); |
76 | 74 |