Martchus
6016ec4bff
Set the desktop file name via `SET_QT_APPLICATION_INFO`
2024-04-08 12:37:39 +02: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
6dd98369b8
Allow configuring network information plugins
2024-02-15 21:51:48 +01:00
Martchus
88310af665
Show a warning if the current Windows version is not supported
2023-11-18 22:03:27 +01:00
Martchus
4c32a60551
Remove duplicated lookup in `loadApplicationTranslationFile()`
2023-07-03 22:00:42 +02:00
Martchus
8fd1452174
Allow clearing previously installed translation files
2023-07-01 23:43:27 +02:00
Martchus
8642f14bb1
Apply clang-format and cmake-format
2023-03-25 18:50:08 +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
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
368c9e9b0e
Add function to return an error message for a `QSettings` object
2023-02-17 19:17:17 +01:00
Martchus
abaea1309a
Remove unused icons
2022-09-10 16:53:30 +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
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
b709ab887f
Default-initialize FONTCONFIG_PATH if not set
...
Fixes font loading in some environments
2022-05-02 00:55:07 +02:00
Martchus
d771646af3
Set `Qt::AA_EnableHighDpiScaling` only before QGuiApplication is constructed
...
Otherwise it is too late anyways and Qt might print a warning.
2021-11-04 00:10:13 +01:00
Martchus
9b559b153c
Fix TLS support for static builds when using Qt 6.2.0 or newer
...
This Qt release "pluginized" the backends for TLS support so we need to
make sure to link against at least one TLS plugin since all of my
applications which use Qt Network expect TLS to work.
2021-10-02 19:39:51 +02:00
Martchus
55341a7305
Prevent memory leaks found via valgrind
2021-03-23 16:46:55 +01:00
Martchus
25062fcf01
Fix/silence warnings
2021-03-20 21:02:00 +01:00
Martchus
d6ea2ac378
Apply cmake-format and clang-format
2020-12-20 17:56:35 +01:00
Martchus
b7c3416c37
Add qt6ct to auto-completion of platform theme argument
2020-11-07 22:09:25 +01:00
Martchus
7d78fb7236
Apply clang-format
2020-10-05 18:37:42 +02:00
Martchus
429ec48a6e
Adapt to Qt 6 (757a9c21c1)
...
* Don't use deprecated QLibraryInfo::path()
* Avoid conflicting QT_FORWARD_DECLARE_CLASS(QStringList)
2020-09-18 18:28:35 +02:00
Martchus
51ca0e895c
Avoid using functions and enum items deprecated in Qt 6
2020-09-15 18:10:15 +02:00
Martchus
56cf474231
Enable High-DPI scaling by default in all my Qt applications
2020-07-12 21:15:48 +02:00
Martchus
1f08721dda
Remove ConfigFile::locateConfigFile()
...
Needed adjustments to support the config suffix feature. Since it
is only used by videodownloader it can be dropped.
2019-08-20 22:16:38 +02:00
Martchus
6b510b21e7
Add missing quote when logging translation lookup
2019-08-10 00:10:16 +02:00
Martchus
8cbe2da2a2
Remove own icons for button overlay
...
* Use "edit-clear" from icon theme instead
* Other icons were only used by the tag editor but it now uses
icons from the icon theme instead
2019-08-08 22:54:13 +02:00
Martchus
a40d2974e0
Fix translation lookup if config name is set
...
In this case the config name must only be appended to the applications
config directory but *not* to the name of the translation file itself.
2019-08-07 22:57:17 +02:00
Martchus
8de2d7f7c8
Don't set organization domain to application URL
...
Otherwise window icons are not shown correctly under Wayland.
2019-07-20 20:59:13 +02:00
Martchus
2dc2e6f4c2
Prevent crash by instantiating QString explicitely
2019-06-17 00:43:44 +02:00
Martchus
7e8766cdb6
Allow to debug locating of translations
2019-06-16 16:56:38 +02:00
Martchus
18e3a907af
Adapt to changes in c++utilities
2019-06-12 20:39:02 +02:00
Martchus
b3e7c390d9
Have everything in one top-level namespace
2019-06-10 21:57:46 +02:00
Martchus
72d0e9e6e0
Adapt search path for translations to new config system
2019-05-05 18:37:24 +02:00
Martchus
8c9d834b68
Split style arguments
2019-05-04 23:34:19 +02:00
Martchus
df120f4b73
Add CLI argument to set Qt scene graph renderer
2019-05-04 23:25:33 +02:00
Martchus
4de0685c84
Apply clang-format
2019-05-04 21:01:18 +02:00
Martchus
850101dce6
Support installing multiple configurations within the same prefix
2019-05-03 01:03:41 +02:00
Martchus
3a1af588ce
Fix condition to apply qqc2 style
2018-12-15 23:54:00 +01:00
Martchus
4ed713e6a0
Simplify code for setting widgets style
2018-12-15 23:53:20 +01:00
Martchus
b7b4467326
Use braces for #if defined(...)
2018-12-08 19:08:42 +01:00
Martchus
d607cb046e
Apply default QQC2 style also when quick-gui arg not present
...
So it works also under Android (where the usual argument parsing
might not be applied).
2018-09-18 21:49:20 +02:00
Martchus
c6af8c762e
Fix setting default QQC2 style
2018-07-15 19:44:35 +02:00
Martchus
d0e81c6a4a
Improve coding style in QtConfigArguments
2018-06-16 13:20:14 +02:00
Martchus
17a99c7bd7
Set default QQ2 style for Android and Windows
2018-06-16 13:19:00 +02:00
Martchus
5c6938ff14
Set default
2018-06-16 13:18:05 +02:00
Martchus
5d490ed908
Document environment variables and style examples for Qt config
2018-06-16 13:17:05 +02:00
Martchus
b7f2ce0f10
Allow to overriding Qt Quick Controls 2 style
...
Make it an extra function in the header so the utilities
don't depend on the Qt Quick Controls 2 library (just for
one function call).
2018-06-16 13:10:19 +02:00