Martchus
5430edc5fc
Avoid running expensive icon-bundling code on every CMake re-configuration
2023-03-23 22:08:57 +01:00
Martchus
0e151b3cc6
Avoid relying on external tool for working around CMake's broken `REALPATH`
2023-03-23 21:48:59 +01:00
Martchus
c2bd68824c
Workaround broken `get_filename_component(... REALPATH)` on Windows
...
See https://gitlab.kitware.com/cmake/cmake/-/issues/17206
2023-03-16 00:50:50 +01:00
Martchus
dd3ae7b32b
Make search path for icon themes configurable
2023-03-16 00:48:11 +01:00
Martchus
b8a428f29f
Update translations
2023-03-15 21:29:30 +01:00
Martchus
9f4c7a8aaa
Use `PLATFORM_WINDOWS` (and not `PLATFORM_MINGW`) in conversion functions
...
Whether MinGW (or MSVC) is used shouldn't make a difference here. The code
using these functions generally sticks to UTF-8 on Windows.
2023-03-15 21:29:14 +01:00
Martchus
647ad121a5
Improve setting default icon theme
...
* Set the default icon theme when applying Qt settings and the "system"
theme is supposed to be used but none could be determined by Qt
* Use a bundled icon theme depending on whether the current palette is
light or dark
* Apply the default not only under Windows anymore; supposedly this makes
sense under any platform where Qt cannot determine the icon theme for us
2023-03-15 21:27:04 +01:00
Martchus
54650eb2af
Improve setting icon theme from CLI arguments
...
* Use `qEnvironmentVariable()` to read env variables into `QString`s
* Treat CLI arguments as UTF-8 (they will be converted to UTF-8 on Windows)
which is consistent with the CLI argument handling in tag editor
* Add comment about processing of `m_iconThemeArg` and reserve the correct
size when building the `QStringLiteral`
2023-03-15 20:07:10 +01:00
Martchus
e5bd602d91
Ensure environment settings are effective before applying other settings
...
At least the documentation of `QIcon::setThemeName()` sounds like it could
make a difference:
```
The name should correspond to a directory name in the themeSearchPath() …
```
2023-03-15 19:31:09 +01:00
Martchus
fd151995ce
Adapt to dark mode support in Qt 6.5
...
* Avoid setting platform setting in Qt 6.5 as it is no longer needed for
dark Window frames
* Reference recent blog post
* Add real `isDarkModeEnabled()` function using new Qt 6.5 API (as existing
`isPaletteDark()` function is only based on the current palette)
2023-03-13 20:59:57 +01:00
Martchus
89bbd75950
Bump minor version
2023-03-13 20:23:28 +01:00
Martchus
368c9e9b0e
Add function to return an error message for a `QSettings` object
2023-02-17 19:17:17 +01:00
Martchus
6e52b62706
Bump minor version
2023-02-17 19:16:30 +01:00
Martchus
2f46ecfbf4
Update translations
2023-02-11 16:21:35 +01:00
Martchus
1dded32095
Avoid assigning wrong window icon to settings tab with no icon
...
* Reset the settings page's widget's parent so `windowIcon()` won't return
the parent's icon
* Improve the coding style a little bit
2023-02-11 16:21:19 +01:00
Martchus
41ddfc08b7
Update copyright notice
2023-01-17 18:34:58 +01:00
Martchus
a051af49ae
Avoid warning about unqualified std cast
2022-11-04 16:50:33 +01:00
Martchus
317bd33b08
Bump patch version
2022-11-04 16:49:34 +01:00
Martchus
1b5fc13475
Add fallback for `qEnvironmentVariable()` to support older Qt versions
2022-10-29 21:34:47 +02:00
Martchus
b2e6e763fb
Bump minor version
2022-10-29 21:31:15 +02:00
Martchus
777cbb6fc0
Apply clang-format on tests
2022-10-16 15:06:41 +02:00
Martchus
8df0a87970
Bump patch version
2022-10-16 15:06:30 +02:00
Martchus
f4c5df7cac
Update translations
2022-10-02 20:31:47 +02:00
Martchus
ba16862d48
Allow selecting a settings page programmatically
2022-10-02 20:31:35 +02:00
Martchus
f81672885c
Make `apply()` and `reset()` slots of `SettingsDialog` public
2022-10-01 21:38:40 +02:00
Martchus
66b1a59e85
Bump minor version
2022-10-01 21:37:36 +02:00
Martchus
ec03bd8eeb
Update minimum required Qt version
...
Builds with Qt 5.6 are no longer conducted so only the latest
Qt 5 or 6 version is tested anymore.
2022-09-20 21:24:18 +02:00
Martchus
abaea1309a
Remove unused icons
2022-09-10 16:53:30 +02:00
Martchus
3a4ccfa75d
Bump patch version
2022-09-10 16:42:37 +02:00
Martchus
c9fcf52e40
Add comments for the tweaks in `setupCommonQtApplicationAttributes()`
2022-09-05 23:25:04 +02:00
Martchus
b6701ef837
Enable dark window frame on Windows if configured color palette is dark
2022-09-05 23:22:13 +02:00
Martchus
d59b89c067
Update translations
2022-08-27 15:07:08 +02:00
Martchus
c91d73afc3
Allow adding additional widgets to the heading of the settings dialog
2022-08-27 15:02:16 +02:00
Martchus
49854354d6
Update translations
2022-08-23 18:43:40 +02:00
Martchus
58690920e4
Allow setting/getting corner widget in tab-widget of settings dialog
2022-08-23 18:43:28 +02:00
Martchus
e3e2d24aeb
Add `getSettings()` to streamline settings locations in my apps
...
* Keep handling for old location of settings file
* Add handling to allow portable settings (see
https://github.com/Martchus/tageditor/issues/88 )
2022-08-20 16:16:40 +02:00
Martchus
d08ce3781d
Bump minor version
2022-08-20 16:15:03 +02:00
Martchus
885323e367
Add OptionPageWidget with `paletteChanged()` signal
2022-07-16 18:44:47 +02:00
Martchus
0f7a4eb059
Add function to determine whether palette is dark
2022-07-16 18:44:47 +02:00
Martchus
6e5a9419be
Bump minor version
2022-07-16 18:44:47 +02:00
Martchus
b5af7fed34
Update translations
2022-06-09 21:08:38 +02:00
Martchus
29b2267711
Fix invalid use of freed object in settings dialog test
2022-06-09 21:01:58 +02:00
Martchus
9dd375abe9
Avoid creating 2nd instance of Qt-`OptionCategory` when invoking `showCategory()`
2022-06-09 20:24:12 +02:00
Martchus
d4e35c28a3
Fix typo
2022-06-09 20:19:27 +02:00
Martchus
13d2049524
Fix invalid test; `SettingsDialog` takes ownership of `OptionCategory`
2022-06-09 20:10:11 +02:00
Martchus
38b748e04b
Increment patch version
2022-06-09 20:08:42 +02:00
Martchus
752c8cdc71
Link builds using static Qt also against Wayland shell integration plugins
...
These are required; the Wayland integration plugin alone is not sufficient.
2022-05-02 20:15:07 +02:00
Martchus
b709ab887f
Default-initialize FONTCONFIG_PATH if not set
...
Fixes font loading in some environments
2022-05-02 00:55:07 +02:00
Martchus
6564932b64
Fix applying selected custom font
2022-05-01 21:57:59 +02:00
Martchus
8a4b865c28
Improve linking against static Qt plugins
...
* Detect a static Qt build and link against Qt plugins automatically in
that case (without the necassity to set `STATIC_LINKAGE`)
* Add offscreen support on UNIX platforms as it is useful for testing on
headless systems
* Add wayland support if available
* Populate `QT_TEST_LIBRARIES` in case we're not building an app because
the plugins are still required when building tests
2022-04-28 21:42:33 +02:00