Commit Graph

538 Commits

Author SHA1 Message Date
Martchus 8ee322abb7 Deprecate the CMake module `AndroidApk` 2024-03-17 00:42:19 +01:00
Martchus bbd42e167d Adapt default QQC2 style definitions for Qt 6
The casing is important, otherwise this results in the error
`module "material" is not installed`.
2024-03-16 23:17:30 +01:00
Martchus 63ffbc4a6f Avoid warning after `QOperatingSystemVersion::OSType` was moved
This is now `QOperatingSystemVersionBase::OSType` causing a warning about
an implicit conversion. Making an explicit cast to whatever type
`os.type()` actually returns (depends on the Qt version) this warning does
not occur anymore and the code should still compile with any Qt version.
2024-03-15 23:54:17 +01:00
Martchus 600470e609 Bump patch version 2024-03-15 23:50:29 +01:00
Martchus 7a07077daf Apply change of `global.h` template 2024-02-22 19:42:13 +01:00
Martchus 7e7f8a5740 Fix configuring macro for network information plugins
The actual name of these plugins differs from the name of the CMake target.
2024-02-16 17:40:16 +01:00
Martchus 6dd98369b8 Allow configuring network information plugins 2024-02-15 21:51:48 +01:00
Martchus 6e103e09ad Update copyright date 2024-02-15 21:47:03 +01:00
Martchus 5bb21d2ead Bump patch version 2024-02-15 21:46:54 +01:00
Martchus 010f5d8408 No longer enforce Fusion style on Windows 11 as of Qt 6.7
It looks like Qt 6.7 is going to provide a style for Windows 11 that will
fix the mentioned bug.
2023-12-15 15:56:09 +01:00
Martchus a30509a743 Add `ModernWindowsStyle` to list of style plugins
It looks like `WindowsVistaStyle`-plugin is going to be renamed
to `ModernWindowsStyle`-plugin. This plugin is going to provide the old
style `windowsvista` and the new style `windows11`.

I haven't seen any changelogs yet but that's what it looks like so far:
https://code.qt.io/cgit/qt/qtbase.git/tree/src/plugins/styles/modernwindows?h=6.7
2023-12-15 15:42:21 +01:00
Martchus 02a5617e36 Bump patch version 2023-12-15 15:36:07 +01:00
Martchus 5a7dac58ac Update translations 2023-11-18 22:08:45 +01:00
Martchus adf64a3d0d Apply clang-format 2023-11-18 22:05:36 +01:00
Martchus f52c7b8214 Fix error message when Qt/KF module is not found 2023-11-18 22:04:25 +01:00
Martchus 88310af665 Show a warning if the current Windows version is not supported 2023-11-18 22:03:27 +01:00
Martchus 265d3739c8 Bump patch version 2023-11-18 22:02:16 +01:00
Martchus 0eaa556a66 Update translations 2023-10-29 21:23:28 +01:00
Martchus 671617bf10 Apply cmake-format 2023-10-29 21:23:18 +01:00
Martchus c347bbfe1f Fix compilation against Qt < 6.1 2023-10-29 21:23:01 +01:00
Martchus c43ba340df Allow configuring OpenGL and Wayland support when linking against static Qt 2023-10-27 21:27:05 +02:00
Martchus cfa8347f19 Update translations 2023-10-15 16:57:52 +02:00
Martchus 458d98a279 Allow logging a few useful Qt-related information by setting env variable
Log Qt-related info when the environment variable
QT_UTILITIES_LOG_QT_CONFIG is set.
2023-10-14 20:44:59 +02:00
Martchus dcc6f71f1e Avoid unqualified `std` calls in `qtsettings.cpp` 2023-10-14 20:09:31 +02:00
Martchus a1f50456e8 Use `QLocale::territory()` instead of deprecated `QLocale::country()` 2023-10-14 20:03:37 +02:00
Martchus d546777f8c Make X11 optional 2023-10-11 18:11:07 +02:00
Martchus 91b9eed2d0 Ensure `use_package` is defined when configuring capslock detection 2023-09-19 12:36:44 +02:00
Martchus d47a5a93ed Update translations 2023-09-11 21:27:56 +02:00
Martchus 6bce4c40f2 Improve configuration and code of capslock detection
* Define `X_AVAILABLE` if that's the case so the X11-specific code can
  actually ever be effective
* Make the default for `CAPSLOCK_DETECTION` simply depending on whether it
  can be configured instead of making it platform dependent
* Simplify code and avoid warnings in X11-specific code
2023-09-11 21:27:41 +02:00
Martchus 472e32bfc2 Apply cmake-format 2023-09-11 21:20:43 +02:00
Martchus 56865f3a89 Add one hard-coded fallback search paths for icon themes
The `CMAKE_INSTALL_DATAROOTDIR` variable might be overridden by the project
to point to some custom location (e.g. `share/games` instead of `share`)
but this doesn't mean we will be able to find icons there.

Since icons are almost always under `/usr/share/icons` it makes sense to
add that location as one last hard-coded fallback to avoid having to
specify `BUILTIN_ICON_THEMES_SEARCH_PATH` in that common case.
2023-09-06 17:32:53 +02:00
Martchus 490345b2ca Bump patch version 2023-09-06 17:29:24 +02:00
Martchus b2f76021cc Update patch version 2023-09-05 17:51:57 +02:00
Martchus f5d99397ff Avoid CMake deprecation warning by bumping version 2023-07-23 21:18:51 +02:00
Martchus 856663f89d Update translations 2023-07-04 18:20:05 +02:00
Martchus 4c32a60551 Remove duplicated lookup in `loadApplicationTranslationFile()` 2023-07-03 22:00:42 +02:00
Martchus a6a64aa429 Make warning about missing Qt translations dependent on BUILTIN_TRANSLATIONS_OF_QT 2023-07-03 21:58:18 +02:00
Martchus 0e9637faa2 Fix dynamic retranslation of about dialog
`retranslateUi` must not be used here as it would revert the controls to
the initial state.
2023-07-03 00:49:37 +02:00
Martchus e448ff04fa Apply clang-format 2023-07-03 00:26:25 +02:00
Martchus 710a092458 Update translations 2023-07-03 00:25:57 +02:00
Martchus c7426403e5 Allow configuring notice on localization option page individually
Whether an application can retranslate the UI dynamically likely differs
from whether the other appearance related settings can be applied
dynamically so this needs to be configurable individually.

Additionally, the environment settings can never be applied dynamically so
the notice on that page should always be shown.
2023-07-03 00:21:29 +02:00
Martchus b340ff819c Retranslate certain dialogs/widgets dynamically
This does not cover all details yet.
2023-07-03 00:07:01 +02:00
Martchus 147b08ecf8 Retranslate tab texts in settings dialog dynamically 2023-07-02 23:54:55 +02:00
Martchus 0392b27b97 Add function for assigning a settings category name with retranslation
The function is still experimental as there's likely a better way to
implement this.
2023-07-02 23:54:14 +02:00
Martchus f69ffec06c Allow tracking whether the locale has changed via the `QtSettings` class
This allows an application to reload translations if the default locale has
changed to apply locale changes dynamically.
2023-07-02 23:48:46 +02:00
Martchus f30d020cda Update translations 2023-07-02 17:12:32 +02:00
Martchus dd99862769 Make the settings dialog react to language changes
This covers the settings dialog itself and option pages based on
`UiFileBasedOptionPage`. Other option pages need to react to the
new `OptionPageWidget::retranslationRequired()` signal or handle
the `QEvent::LanguageChange` event which is now propageted to the
page's widget.
2023-07-02 17:12:32 +02:00
Martchus bc3f84e65d Apply clang-format 2023-07-01 23:43:46 +02:00
Martchus 8fd1452174 Allow clearing previously installed translation files 2023-07-01 23:43:27 +02:00
Martchus 8d8585d00d Allow to instantiate built-in option pages individually
Expose conversion from QtSettings to QtSettingsData so one can pass such
an object to the constructor of e.g. QtLanguageOptionPage.
2023-06-26 21:22:42 +02:00