qt5base-lts/examples/widgets/tools
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
..
completer CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
customcompleter CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
echoplugin CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
i18n CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
plugandpaint CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
regularexpression CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
settingseditor Polish the settingseditor example 2020-07-10 11:31:09 +00:00
styleplugin CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
treemodelcompleter CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
undo CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
undoframework CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
.prev_CMakeLists.txt Move QTextCodec support out of QtCore 2020-06-20 02:04:38 +02:00
CMakeLists.txt Move QTextCodec support out of QtCore 2020-06-20 02:04:38 +02:00
tools.pro Move QTextCodec support out of QtCore 2020-06-20 02:04:38 +02:00