Mercurial > octave
changeset 32392:578dd534d0fe
gui: Avoid warning about deprecated "QLibraryInfo::location" with Qt6.
* libgui/src/gui-settings.cc (gui_settings::config_translators): Use
"QLibraryInfo::path" with Qt6.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sun, 08 Oct 2023 19:36:22 +0200 |
parents | 6ce32f4ca644 |
children | cef55b4a5749 |
files | libgui/src/gui-settings.cc |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/gui-settings.cc Sun Oct 08 19:14:08 2023 +0200 +++ b/libgui/src/gui-settings.cc Sun Oct 08 19:36:22 2023 +0200 @@ -386,7 +386,11 @@ bool loaded; QString qt_trans_dir +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) + = QLibraryInfo::path (QLibraryInfo::TranslationsPath); +#else = QLibraryInfo::location (QLibraryInfo::TranslationsPath); +#endif QString language = "SYSTEM"; // take system language per default