Small cleanups
* Instantiate the FindDialog on demand only. * When submitting a contact and there was an error, return early to avoid adding the incomplete contact. * In the FindDialog's findClicked slot call accept() or reject() on the dialog, to propagate the acceptance to the caller in AddressBook::findContact. * Renamed FindDialog::getFindText to FindDialog::findText() Reviewed-by: Kavindra
Showing
- doc/examples/addressbook-sdk/part5/addressbook.cpp 5 additions, 7 deletionsdoc/examples/addressbook-sdk/part5/addressbook.cpp
- doc/examples/addressbook-sdk/part5/addressbook.h 0 additions, 3 deletionsdoc/examples/addressbook-sdk/part5/addressbook.h
- doc/examples/addressbook-sdk/part5/finddialog.cpp 6 additions, 9 deletionsdoc/examples/addressbook-sdk/part5/finddialog.cpp
- doc/examples/addressbook-sdk/part5/finddialog.h 3 additions, 3 deletionsdoc/examples/addressbook-sdk/part5/finddialog.h
Loading
Please register or sign in to comment