qt6-bb10/examples/widgets/itemviews/addressbook
Chris Lerner c3fa43513e 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.7 6.6 6.5 6.2
Change-Id: I7f25711785ec7a82852a0f37d9f096cc3af41576
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-11 00:12:19 +02:00
..
CMakeLists.txt CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
adddialog.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
adddialog.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
addressbook.pro
addresswidget.cpp Don't add any entry whose name doesn't start with a letter 2024-04-11 00:12:19 +02:00
addresswidget.h Don't use file dialog in the address book example 2023-01-13 19:21:44 +00:00
main.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
mainwindow.cpp Don't use file dialog in the address book example 2023-01-13 19:21:44 +00:00
mainwindow.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
newaddresstab.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
newaddresstab.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
tablemodel.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
tablemodel.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00