a83b2c64a9
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> |
||
---|---|---|
.. | ||
animation | ||
desktop | ||
dialogs | ||
doc | ||
draganddrop | ||
effects | ||
gallery | ||
gestures | ||
graphicsview | ||
itemviews | ||
layouts | ||
mainwindows | ||
painting | ||
qnx/foreignwindows | ||
richtext | ||
scroller | ||
statemachine | ||
tools | ||
touch | ||
tutorials | ||
widgets | ||
windowcontainer | ||
.prev_CMakeLists.txt | ||
CMakeLists.txt | ||
widgets.pro |