Martchus
0e7c10e622
Apply clang-format
2023-06-08 15:33:15 +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
92c643f5ff
Apply clang-format
2023-04-02 18:29:01 +02:00
Martchus
0ce5be5b2f
Use Fusion by default on Windows 11
...
The native Windows style doesn't look very nice
on Windows 11 so Fusion looks better in comparison,
see https://bugreports.qt.io/browse/QTBUG-97668 .
2023-03-28 23:42:13 +02:00
Martchus
63b33810e5
Allow disabling notices in Qt settings option pages
2023-03-26 21:24:43 +02:00
Martchus
bd1e603fcf
Improve behavior of `QtSettings::apply()` to be called multiple times
...
* Restore default settings
* Remove previously configured paths
2023-03-26 21:05:13 +02:00
Martchus
3e0754ebe5
Use fully qualified type in signal signature of `OptionCategory`
2023-03-26 19:51:50 +02:00
Martchus
f27288fb1f
Pass context object in lambda connections in `qtsettings.cpp`
2023-03-26 19:42:25 +02:00
Martchus
8642f14bb1
Apply clang-format and cmake-format
2023-03-25 18:50:08 +01:00
Martchus
41a1ede6fc
Improve handling style changes in custom dialog style
...
* Avoid using global palette when computing stylesheet
* Re-compute stylesheet on palette changes
2023-03-25 18:49:43 +01:00
Martchus
bbb65ae0dd
Add function to re-evaluate the palette and default icon theme
2023-03-23 22:40:42 +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
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
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
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
c91d73afc3
Allow adding additional widgets to the heading of the settings dialog
2022-08-27 15:02:16 +02:00
Martchus
58690920e4
Allow setting/getting corner widget in tab-widget of settings dialog
2022-08-23 18:43:28 +02:00
Martchus
885323e367
Add OptionPageWidget with `paletteChanged()` signal
2022-07-16 18:44:47 +02:00
Martchus
d4e35c28a3
Fix typo
2022-06-09 20:19:27 +02:00
Martchus
6564932b64
Fix applying selected custom font
2022-05-01 21:57:59 +02:00
Martchus
a2482ef37c
Avoid several warnings when building against Qt 6
2021-11-04 00:06:15 +01:00
Martchus
7765e6f062
Fix typos found via `codespell --skip .git -w`
2021-07-03 19:14:13 +02:00
Martchus
15075df0ca
Remove overspecification of Qt version in documentation and comments
2020-09-04 01:19:20 +02:00
Martchus
cb3a4960e7
Support Qt 6 (commit 174154b)
2020-09-04 00:44:48 +02:00
Martchus
5cb0d801ba
Improve coding style in optioncategorymodel.cpp
2019-08-10 22:03:13 +02:00
Martchus
e03b619b58
Add property for categories of OptionCategoryModel
2019-08-10 21:59:29 +02:00
Martchus
2772bad471
Improve parameter-passing in settings classes
...
* Pass QList by const ref
* Construct QList/QVector from initializer list
2019-08-10 21:56:53 +02:00
Martchus
9908190722
Use make_unique in qtsettings.cpp
2019-08-10 21:51:05 +02:00
Martchus
6d0d15bec2
Improve coding style if settingsdialog.cpp
...
* Reduce indentation
* Use const were possible
2019-08-10 21:50:29 +02:00
Martchus
c1746c4302
Use use instead of typedef in optionpage.h
2019-07-07 13:36:49 +02:00
Martchus
b3e7c390d9
Have everything in one top-level namespace
2019-06-10 21:57:46 +02:00
Martchus
8dc2956edf
Use override
2018-10-10 21:12:58 +02:00
Martchus
e12c60b594
Reduce padding of QtSettingsData
2018-08-12 22:12:16 +02:00
Marius Kittler
fa53b13f73
Fix typo occured -> occurred
2018-07-23 14:45:16 +02:00
Martchus
da485f5702
Don't reset or apply option pages which haven't been shown
...
This makes the annoying hasBeenShown() check in each apply()
and reset() implementation unnecessary. It should not break
anything because if the page hasn't been shown there is nothing
to reset/apply anyways.
2017-09-27 00:20:43 +02:00
Martchus
afe3373896
Apply tidy after updating to clang-format 5.0.0
...
The behavior of clang-format slightly changed in Clang 5.0.0:
http://releases.llvm.org/5.0.0/tools/clang/docs/ReleaseNotes.html#clang-format
2017-09-17 21:45:49 +02:00
Martchus
302831dca1
Add BEGIN_DECLARE_OPTION_PAGE_CUSTOM_CTOR
2017-09-09 21:36:30 +02:00
Martchus
0599eb354d
Apply clang-format
2017-05-04 22:46:37 +02:00
Martchus
2dcbc02f4b
Apply clang-format
2017-05-01 03:16:25 +02:00
Martchus
61a544d42f
Make definitions for gui support project specific
2017-04-27 22:03:37 +02:00
Martchus
93245e9e0c
Handle errors when applying Qt settings
2017-03-06 22:13:58 +01:00
Martchus
74aa4316b1
Use std::make_unique provided by C++14
2017-02-05 21:03:01 +01:00
Martchus
086ff0b409
Fix customizing locale
2017-01-07 16:56:24 +01:00
Martchus
f50f35ddc8
Add German translation
2017-01-07 16:46:53 +01:00
Martchus
900e43c7d1
settings dlg: Clean errors during apply
...
Errors are re-added on each OptionPage::apply()
2016-12-12 23:36:08 +01:00
Martchus
58d762b7ee
Improve error message in loadApplicationTranslationFile()
2016-10-05 23:00:51 +02:00
Martchus
40fba1a3df
Remember last page of settings category
2016-09-08 23:34:39 +02:00
Martchus
5d9b3e8be4
Improve error message of SettingsDialog
2016-09-03 20:19:17 +02:00
Martchus
58fad82c3b
Support icons in SettingsDialog tabs
2016-08-31 23:38:35 +02:00