Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
e5076f63
Commit
e5076f63
authored
Jul 21, 2009
by
Kavindra Devi Palaraja
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doc - More of Part 5's documentation (changed some parts to suit the code)
Reviewed-By: TrustMe
parent
eec53984
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
16 deletions
+9
-16
doc/addressbook-sdk.qdoc
doc/addressbook-sdk.qdoc
+9
-16
No files found.
doc/addressbook-sdk.qdoc
View file @
e5076f63
...
@@ -714,8 +714,8 @@
...
@@ -714,8 +714,8 @@
of buttons.
of buttons.
When the user clicks on the \gui Find button, it is useful to display a
When the user clicks on the \gui Find button, it is useful to display a
dialog
that can
prompt the user for a contact's name. Qt provides QDialog,
dialog prompt
ing
the user for a contact's name. Qt provides QDialog,
which
which
we subclass in this chapter, to implement a FindDialog class.
we subclass in this chapter, to implement a FindDialog class.
\section1 Designing The FindDialog
\section1 Designing The FindDialog
...
@@ -737,24 +737,17 @@
...
@@ -737,24 +737,17 @@
\section1 Implementing The FindDialog Class
\section1 Implementing The FindDialog Class
Let's look at \c{FindDialog}'s header file. Here, we need to provide
Let's look at \c{FindDialog}'s header file. We define a public function,
private members for the class so that we can access the widgets freely
\c findText(), to be used by classes that instantiate \c FindDialog. This
throughout the class.
function allows the these classes to obtain the search string entered by
the user. A public slot, \c findClicked(), is also defined to handle the
search string when the user clicks the \gui Find button.
\snippet examples/addressbook-sdk/part5/finddialog.h private members
\snippet examples/addressbook-sdk/part5/finddialog.h findText
We define a public function, \c getFindText(), to be used by classes that
instantiate \c FindDialog. This function allows the these classes to obtain
the search string entered by the user. A public slot, \c findClicked(), is
also defined to handle the search string when the user clicks the \gui Find
button.
\snippet examples/addressbook-sdk/part5/finddialog.h getFindText
\dots
\dots
\snippet examples/addressbook-sdk/part5/finddialog.h findClicked
\snippet examples/addressbook-sdk/part5/finddialog.h findClicked
Now, lets look at our constructor in the \c{finddialog.cpp} file. Here, we
Now, lets look at our constructor in the \c{finddialog.cpp} file.
set up the private variables, \c lineEdit, \c findButton, and \c findText.
\snippet examples/addressbook-sdk/part5/finddialog.cpp constructor
\snippet examples/addressbook-sdk/part5/finddialog.cpp constructor
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment