Mercurial > octave
comparison libgui/src/octave-qobject.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 | 1a0756f7c90a |
children | 0645ea65ca6b |
comparison
equal
deleted
inserted
replaced
31613:c6683fcc5c33 | 31614:59c9da7c43d6 |
---|---|
206 // Set the codec for all strings (before wizard or any GUI object) | 206 // Set the codec for all strings (before wizard or any GUI object) |
207 #if ! defined (Q_OS_WIN32) | 207 #if ! defined (Q_OS_WIN32) |
208 QTextCodec::setCodecForLocale (QTextCodec::codecForName ("UTF-8")); | 208 QTextCodec::setCodecForLocale (QTextCodec::codecForName ("UTF-8")); |
209 #endif | 209 #endif |
210 | 210 |
211 // Initialize global Qt application metadata. | |
212 | |
213 QCoreApplication::setApplicationName ("GNU Octave"); | |
214 QCoreApplication::setApplicationVersion (OCTAVE_VERSION); | |
215 | |
216 // Register octave_value_list for connecting thread crossing signals. | 211 // Register octave_value_list for connecting thread crossing signals. |
217 | 212 |
218 qRegisterMetaType<octave_value_list> ("octave_value_list"); | 213 qRegisterMetaType<octave_value_list> ("octave_value_list"); |
219 | 214 |
220 // Bug #55940 (Disable App Nap on Mac) | 215 // Bug #55940 (Disable App Nap on Mac) |