Commit Graph

521 Commits

Author SHA1 Message Date
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
Martchus 3ac8c8e1a4 Update minor version 2023-06-26 21:22:42 +02:00
Martchus 96f10766d4 Enable web view support only by default if Qt WebEngine is present
The web view is only an optional enhancement in my applications so having
the support disabled is rather common. So for a better out-of-the-box
experience when configuring my projects it makes sense not having to
disable web view support explicitly if Qt WebEngine is not installed
anyways.
2023-06-10 18:08:13 +02:00
Martchus defecc45bc Fix showing font dialog 2023-06-09 12:28:26 +02:00
Martchus 0a952a2093 Bump patch version 2023-06-09 12:27:25 +02:00
Martchus fecf24a845 Update translations 2023-06-08 16:58:12 +02:00
Martchus cc05211664 Fix applying certain color roles when loading palette from file 2023-06-08 16:42:09 +02:00
Martchus c528926ce6 Remove useless function from palette editor 2023-06-08 16:21:50 +02:00
Martchus 0e7c10e622 Apply clang-format 2023-06-08 15:33:15 +02:00
Martchus 474af5eed9 Update translations 2023-06-08 14:04:55 +02:00
Martchus 3fffbc26e8 Fix selecting custom palette
For some reason the tool button's palette changes back to the old palette
when applying changes. So it cannot be used to hold the intermediately
selected paletted.
2023-06-08 13:28:35 +02:00
Martchus 958d7bc7c9 Bump patch version 2023-06-08 13:22:00 +02:00
Martchus 7dab696f42 Update translations 2023-05-21 20:12:41 +02:00
Martchus acecbd1158 Fix warnings about cv qualifiers droped from `static_cast` return type
The change for avoiding a warning from MSVC about 64-bit shift operations
introduced a different warning from GCC. Hopefully this now avoids warnings
in all compilers.
2023-05-21 19:00:36 +02:00
Martchus 03a3867688 Fix warning from MSVC about 64-bit shift operations 2023-05-10 22:07:39 +02:00
Martchus 6e4ea3652c Build CLI wrappers for Qt applications by default
Most of my Qt apps provide at least a basic CLI as well so providing the
CLI wrapper by default makes most sense.
2023-05-07 21:41:47 +02:00
Martchus a91c015e1c Bump patch version 2023-05-07 21:41:47 +02:00
Martchus 6974beab8a Update translations 2023-04-02 18:29:17 +02:00