diff options
author | Kavindra Devi Palaraja <kavindra.palaraja@nokia.com> | 2009-06-30 16:57:56 +0200 |
---|---|---|
committer | Kavindra Devi Palaraja <kavindra.palaraja@nokia.com> | 2009-06-30 16:58:10 +0200 |
commit | 3264878fe6eee535bc988642324b3ec9e8caf655 (patch) | |
tree | c222c17d0fece4ffc994b0dc713db655ce91c74a /doc | |
parent | 2de887eaa9cb33cb2766bbc42fb206765c1f2455 (diff) | |
download | qt-creator-3264878fe6eee535bc988642324b3ec9e8caf655.tar.gz |
Doc - More on Part 5
Reviewed-By: TrustMe
Diffstat (limited to 'doc')
-rw-r--r-- | doc/addressbook-sdk.qdoc | 16 | ||||
-rw-r--r-- | doc/examples/addressbook-sdk/part5/addressbook.cpp | 2 | ||||
-rw-r--r-- | doc/examples/addressbook-sdk/part5/addressbook.h | 3 |
3 files changed, 20 insertions, 1 deletions
diff --git a/doc/addressbook-sdk.qdoc b/doc/addressbook-sdk.qdoc index 1af405fbbd..6e457d4181 100644 --- a/doc/addressbook-sdk.qdoc +++ b/doc/addressbook-sdk.qdoc @@ -803,6 +803,22 @@ \section1 The AddressBook Class + + + To ensure that we can use \c FindDialog from within our \c AddressBook + class, we include \c finddialog.h in the \c addressbook.h file. + + \snippet examples/addressbook-sdk/part5/addressbook.cpp include + + So far, all our address book features have a QPushButton and a + corresponding slot. Similarly, for the \gui Find feature, we have + \c findButton and \c findContact(). + + Within the \c AddressBook class's constructor, we instantiate our private + objects, \c findButton and \c findDialog: + + \snippet examples/addressbook-sdk/part5/addressbook.cpp + */ diff --git a/doc/examples/addressbook-sdk/part5/addressbook.cpp b/doc/examples/addressbook-sdk/part5/addressbook.cpp index e14d95026f..0e7b361ddc 100644 --- a/doc/examples/addressbook-sdk/part5/addressbook.cpp +++ b/doc/examples/addressbook-sdk/part5/addressbook.cpp @@ -243,6 +243,7 @@ void AddressBook::updateInterface(Mode mode) } } +//! [findContact] void AddressBook::findContact() { dialog->show(); @@ -262,3 +263,4 @@ void AddressBook::findContact() updateInterface(NavigationMode); } +//! [findContact] diff --git a/doc/examples/addressbook-sdk/part5/addressbook.h b/doc/examples/addressbook-sdk/part5/addressbook.h index 9bc1f75ba3..c6f9f60728 100644 --- a/doc/examples/addressbook-sdk/part5/addressbook.h +++ b/doc/examples/addressbook-sdk/part5/addressbook.h @@ -6,8 +6,9 @@ #include <QtGui/QLineEdit> #include <QtGui/QTextEdit> #include <QtGui/QMessageBox> +//! [include] #include "finddialog.h" - +//! [include] namespace Ui { |