Commit 2112a1f6 authored by Kavindra Devi Palaraja's avatar Kavindra Devi Palaraja
Browse files

Doc - Fixing parts of Part 5 and more of Part 6

Reviewed-By: TrustMe
parent fc30904e
......@@ -817,9 +817,9 @@
corresponding slot. Similarly, for the \gui Find feature, we have
\c findButton and \c findContact().
\snippet examples/addressbook-sdk/part5/addressbook.h findContact
\snippet examples/addressbook-sdk/part5/addressbook.h slot definition
\dots
\snippet examples/addressbook-sdk/part5/addressbook.h findButton
\snippet examples/addressbook-sdk/part5/addressbook.h private members
Lastly, we declare the private variable, \c dialog, which we will use to
refer to an instance of \c FindDialog.
......
......@@ -32,9 +32,9 @@ public slots:
void removeContact();
void next();
void previous();
//! [findContact]
//! [slot definition]
void findContact();
//! [findContact]
//! [slot definition]
private:
Ui::AddressBook *ui;
......@@ -47,9 +47,9 @@ private:
QPushButton *removeButton;
QPushButton *nextButton;
QPushButton *previousButton;
//! [findButton]
//! [private members]
QPushButton *findButton;
//! [findButton]
//! [private members]
QLineEdit *nameLine;
QTextEdit *addressText;
......
......@@ -31,6 +31,10 @@ public slots:
void next();
void previous();
void findContact();
//! [slot definition]
void saveToFile();
void loadFromFile();
//! [slot definition]
private:
Ui::AddressBook *ui;
......@@ -44,6 +48,10 @@ private:
QPushButton *nextButton;
QPushButton *previousButton;
QPushButton *findButton;
//! [private members]
QPushButton *loadButton;
QPushButton *saveButton;
//! [private members]
QLineEdit *nameLine;
QTextEdit *addressText;
......
......@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>444</width>
<height>288</height>
<width>478</width>
<height>352</height>
</rect>
</property>
<property name="windowTitle">
......@@ -83,6 +83,20 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="loadButton">
<property name="text">
<string>Load...</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="saveButton">
<property name="text">
<string>Save...</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
......
Markdown is supported
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