Commit ae9b6f32 authored by Kavindra Devi Palaraja's avatar Kavindra Devi Palaraja
Browse files

Doc - More of the tutorial

Reviewed-By: TrustMe
parent 0001216f
......@@ -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
......@@ -743,6 +743,16 @@
in a horizontal layout. Then set a top level layout - either horizontal or
\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
......@@ -19,11 +19,13 @@ public:
public slots:
void findClicked();
//! [private members]
Ui::FindDialog *m_ui;
Ui::FindDialog *m_ui;\
QPushButton *findButton;
QLineEdit *lineEdit;
QString findText;
//! [private members]
#endif // FINDDIALOG_H
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment