qt5base-lts/examples/widgets
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
..
animation CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
desktop CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
dialogs CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
doc Doc: Fix typo 2020-06-25 09:56:46 +02:00
draganddrop CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
effects CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
gallery CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
gestures CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
graphicsview CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
itemviews CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
layouts CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
mainwindows CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
painting CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
qnx/foreignwindows Use QList instead of QVector in statemachine 2020-07-06 14:06:13 +02:00
richtext CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
scroller CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
statemachine CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
tools Polish the settingseditor example 2020-07-10 11:31:09 +00:00
touch CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
tutorials CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
widgets CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
windowcontainer CMake: Regenerate examples 2020-07-09 09:38:28 +02:00
.prev_CMakeLists.txt CMake: Regenerate examples/widgets/ projects 2020-04-29 22:48:38 +02:00
CMakeLists.txt macOS: Remove examples for deprecated QMac(NativeWidget|CocoaViewContainer) 2020-06-26 15:10:26 +02:00
widgets.pro macOS: Remove examples for deprecated QMac(NativeWidget|CocoaViewContainer) 2020-06-26 15:10:26 +02:00