qtbase/examples/widgets/itemviews
Chris Lerner 58d787e007 Don't add any entry whose name doesn't start with a letter
In the Addressbook example, any entry whose name doesn't start
with a letter will not appear in any of the categories,
but it will still exist. These entries would make the
"There are currently no contacts in your address book" page
disappear even when no entries could be found in the categories.

Check if a new entry has a name that doesn't start with a letter,
and if so, don't add it as a contact. Also, notify user that names
must start with a letter when this happens.

Fixes: QTBUG-124254
Pick-to: 6.2
Change-Id: I7f25711785ec7a82852a0f37d9f096cc3af41576
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
(cherry picked from commit c3fa43513e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 37d8317638)
2024-04-11 21:44:16 +00:00
..
addressbook Don't add any entry whose name doesn't start with a letter 2024-04-11 21:44:16 +00:00
basicsortfiltermodel Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
coloreditorfactory Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
combowidgetmapper Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
customsortfiltermodel Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
editabletreemodel Examples: Remove unnecessary Q_INIT_RESOURCE calls 2023-06-08 16:15:14 +00:00
fetchmore Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
frozencolumn Examples: Remove unnecessary Q_INIT_RESOURCE calls 2023-06-08 16:15:14 +00:00
simpletreemodel Examples: Remove unnecessary Q_INIT_RESOURCE calls 2023-06-08 16:15:14 +00:00
spinboxdelegate Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
spreadsheet Examples: Remove unnecessary Q_INIT_RESOURCE calls 2023-06-08 16:15:14 +00:00
stardelegate Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
CMakeLists.txt Move simple dom model example to manual test 2023-07-28 14:41:00 +02:00
README
itemviews.pro Move simple dom model example to manual test 2023-07-28 14:41:00 +02:00

README

Item views are widgets that typically display data sets. Qt 4's model/view
framework lets you handle large data sets by separating the underlying data
from the way it is represented to the user, and provides support for
customized rendering through the use of delegates.


Documentation for these examples can be found via the Examples
link in the main Qt documentation.