Commit Graph

20 Commits

Author SHA1 Message Date
Martchus e448ff04fa Apply clang-format 2023-07-03 00:26:25 +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 885323e367 Add OptionPageWidget with `paletteChanged()` signal 2022-07-16 18:44:47 +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 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 900e43c7d1 settings dlg: Clean errors during apply
Errors are re-added on each OptionPage::apply()
2016-12-12 23:36:08 +01: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 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 20e663cbcc Make include guards more unique and consistent 2016-07-04 23:26:48 +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 87fd94a2e0 improved settings dialog API 2016-04-04 14:49:40 +02:00
Martchus 26748b4923 First commit 2015-04-22 18:57:44 +02:00