From ae9b6f3202fadafe280262e6c12fffa663cfa226 Mon Sep 17 00:00:00 2001 From: Kavindra Devi Palaraja <kavindra.palaraja@nokia.com> Date: Wed, 24 Jun 2009 17:32:47 +0200 Subject: [PATCH] Doc - More of the tutorial Reviewed-By: TrustMe --- doc/addressbook-sdk.qdoc | 12 +++++++++++- doc/examples/addressbook-sdk/part5/finddialog.h | 4 +++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/doc/addressbook-sdk.qdoc b/doc/addressbook-sdk.qdoc index 94d633c5fa4..1974c129ede 100644 --- a/doc/addressbook-sdk.qdoc +++ b/doc/addressbook-sdk.qdoc @@ -727,7 +727,7 @@ dialog that can prompt the user for a contact's name. Qt provides QDialog, which we subclass in this chapter, to implement a FindDialog class. - \section1 Designing FindDialog + \section1 Designing \c FindDialog #image @@ -743,6 +743,16 @@ in a horizontal layout. Then set a top level layout - either horizontal or vertical. + \section1 Implementing \c FindDialog + + Let's look at \c{FindDialog}'s header file. Here, we need to provide + private members for the class so that we can access the widgets freely + throughout the class. + + \snippet examples/addressbook-sdk/part5/finddialog.h private members + + + */ diff --git a/doc/examples/addressbook-sdk/part5/finddialog.h b/doc/examples/addressbook-sdk/part5/finddialog.h index 8a1b3d47d54..9d2f296cae6 100644 --- a/doc/examples/addressbook-sdk/part5/finddialog.h +++ b/doc/examples/addressbook-sdk/part5/finddialog.h @@ -19,11 +19,13 @@ public: public slots: void findClicked(); +//! [private members] private: - Ui::FindDialog *m_ui; + Ui::FindDialog *m_ui;\ QPushButton *findButton; QLineEdit *lineEdit; QString findText; +//! [private members] }; #endif // FINDDIALOG_H -- GitLab