Martchus
e448ff04fa
Apply clang-format
2023-07-03 00:26:25 +02:00
Martchus
147b08ecf8
Retranslate tab texts in settings dialog dynamically
2023-07-02 23:54:55 +02:00
Martchus
0392b27b97
Add function for assigning a settings category name with retranslation
...
The function is still experimental as there's likely a better way to
implement this.
2023-07-02 23:54:14 +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
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
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
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
7765e6f062
Fix typos found via `codespell --skip .git -w`
2021-07-03 19:14:13 +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
6d0d15bec2
Improve coding style if settingsdialog.cpp
...
* Reduce indentation
* Use const were possible
2019-08-10 21:50:29 +02:00
Martchus
b3e7c390d9
Have everything in one top-level namespace
2019-06-10 21:57:46 +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
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
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
5e937c7266
Allow showing only a single category in SettingsDialog
2016-08-16 00:36:19 +02:00
Martchus
2e541286ea
Fix filter in settings dialog
2016-08-11 18:24:02 +02:00
Martchus
87fd94a2e0
improved settings dialog API
2016-04-04 14:49:40 +02:00
Martchus
152df3a2f6
use C++11 foreach loop consistently (instead of Qt foreach macro)
2016-03-05 17:12:51 +01:00
Martchus
372154ce2a
added simple CMake project file
2015-12-05 22:50:38 +01:00
Martchus
58094595ed
don't apply settings twice
2015-11-25 22:49:22 +01:00
Martchus
f44930d580
unified dialog style sheet, removed hard coded colors
2015-09-26 20:28:30 +02:00
Martchus
ce39061808
remove hard coded fonts
2015-09-22 01:50:04 +02:00
Martchus
721e79d027
fixed includes
2015-09-06 20:19:21 +02:00
Martchus
98b02d4149
fixed includes
2015-09-06 15:36:04 +02:00
Martchus
26748b4923
First commit
2015-04-22 18:57:44 +02:00