Mercurial > octave
comparison libgui/src/resource-manager.cc @ 31614:59c9da7c43d6
set Qt organization, application, and version in main program
* main-gui.cc (main): Pass "octave" and "octave-gui" for organization
and application names and OCTAVE_VERSION as version to qt_application
constructor.
* qt-application.cc (qt_application::qt_application):
Set organization and application names and application version in
QCoreApplication object. Set default QSettings format.
* octave-qobject.cc (base_qobject::base_qobject): Don't set
QtCoreApplication name and version here.
* resource-manager.cc (resource_manager::resource_manager):
Use default construtor for gui_settings.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 02 Dec 2022 08:58:41 -0500 |
parents | c2a0e546aab1 |
children | 40b151abbb9b |
comparison
equal
deleted
inserted
replaced
31613:c6683fcc5c33 | 31614:59c9da7c43d6 |
---|---|
65 { | 65 { |
66 resource_manager::resource_manager (void) | 66 resource_manager::resource_manager (void) |
67 : m_settings_directory (), m_settings_file (), m_settings (nullptr), | 67 : m_settings_directory (), m_settings_file (), m_settings (nullptr), |
68 m_default_settings (nullptr), m_temporary_files (), m_icon_fallbacks () | 68 m_default_settings (nullptr), m_temporary_files (), m_icon_fallbacks () |
69 { | 69 { |
70 // Let gui_settings decide where to put the ini file with gui preferences | 70 // Location, name, and format of settings file determined by |
71 m_default_settings | 71 // settings in qt_application class construtor. |
72 = new gui_settings (QSettings::IniFormat, QSettings::UserScope, | 72 |
73 "octave", "octave-gui"); | 73 m_default_settings = new gui_settings (); |
74 | 74 |
75 m_settings_file = m_default_settings->fileName (); | 75 m_settings_file = m_default_settings->fileName (); |
76 | 76 |
77 QFileInfo sfile (m_settings_file); | 77 QFileInfo sfile (m_settings_file); |
78 m_settings_directory = sfile.absolutePath (); | 78 m_settings_directory = sfile.absolutePath (); |