Commit Graph

63 Commits

Author SHA1 Message Date
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
Martchus 7f9afcda73 Fix decoration for static builds
- Also fix finding static web view and JavaScript provider
2016-08-29 15:41:21 +02:00
Martchus 72296a2768 Improve settings dialog 2016-08-27 15:18:44 +02:00
Martchus 55ad0b4de1 Improve icons
- Provide fallback for Qt icon
- Ensure default search paths are not overwritten
2016-08-17 20:05:48 +02:00
Martchus 5e937c7266 Allow showing only a single category in SettingsDialog 2016-08-16 00:36:19 +02:00
Martchus de98b88f4a Improve Qt settings
Setting font and icon theme doesn't work yet, not sure
about locale
2016-08-14 22:44:25 +02:00
Martchus 2e541286ea Fix filter in settings dialog 2016-08-11 18:24:02 +02:00
Martchus 20e663cbcc Make include guards more unique and consistent 2016-07-04 23:26:48 +02:00
Martchus 9137a63462 Improve documentation 2016-06-10 23:05:43 +02:00
Martchus 31ed859555 ensure templates are instantiated 2016-04-16 19:19:27 +02:00
Martchus 48161ba465 improved option page API
- added documentation for the macros
- added macros to force instantiaton of the template class
2016-04-16 18:34:50 +02:00
Martchus aa880c3ed5 further development of Qt settings 2016-04-09 02:33:45 +02:00