qt6-bb10/examples/widgets/tools/settingseditor
Friedemann Kleint a83b2c64a9 Polish the settingseditor example
The example is meant to show an item delegate with a line edit with
QRegularExpression-based validation depending on type.
Unfortunately, this does not work since QSettings mostly
return QString types.

Fix it to a partially working state by
- Making the expressions match from beginning to end which
  was overlooked in the QRegExp->QRegularExpression change.
- Use QCheckBox, QSpinBox for bool/int since it is silly
  to have a user edit a bool value by typing 'true'/'false'.
- Move the expressions out to a separate struct to be
  able to do some guessing of the type when reading
  the QSettings, implement for bool and int.
- Use a fancy Unicode checkmark for displaying bools.
- Fix the garbled display of QByteArray with binary data
  by displaying them with hex characters and setting them
  read-only.

Change-Id: Iba22dfafc3b813b3fd3d2915ef5210d661049382
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
2020-07-10 11:31:09 +00:00
..
inifiles Examples: move widgets specific "tools" examples to the correct place 2012-11-28 00:56:34 +01:00
CMakeLists.txt CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
locationdialog.cpp QComboBox: remove deprecated signals 2020-02-10 18:28:45 +01:00
locationdialog.h Cleanup QtWidgets (tools) examples 2019-09-11 20:36:17 +02:00
main.cpp Unify license header usage. 2016-03-29 10:20:03 +00:00
mainwindow.cpp macOS: Remove all use of deprecated Q_OS_OSX define 2020-04-03 13:44:37 +02:00
mainwindow.h Cleanup QtWidgets (tools) examples 2019-09-11 20:36:17 +02:00
settingseditor.pro qtlite: Skip building examples when configured with no-feature-itemviews 2018-01-12 07:58:20 +00:00
settingstree.cpp Polish the settingseditor example 2020-07-10 11:31:09 +00:00
settingstree.h Polish the settingseditor example 2020-07-10 11:31:09 +00:00
variantdelegate.cpp Polish the settingseditor example 2020-07-10 11:31:09 +00:00
variantdelegate.h Polish the settingseditor example 2020-07-10 11:31:09 +00:00