Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hunger
qt-creator
Commits
e5076f63
Commit
e5076f63
authored
15 years ago
by
Kavindra Devi Palaraja
Browse files
Options
Downloads
Patches
Plain Diff
Doc - More of Part 5's documentation (changed some parts to suit the code)
Reviewed-By: TrustMe
parent
eec53984
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/addressbook-sdk.qdoc
+9
-16
9 additions, 16 deletions
doc/addressbook-sdk.qdoc
with
9 additions
and
16 deletions
doc/addressbook-sdk.qdoc
+
9
−
16
View file @
e5076f63
...
...
@@ -714,8 +714,8 @@
of buttons.
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,
which
we subclass in this chapter, to implement a FindDialog class.
dialog prompt
ing
the user for a contact's name. Qt provides QDialog,
which
we subclass in this chapter, to implement a FindDialog class.
\section1 Designing The FindDialog
...
...
@@ -737,24 +737,17 @@
\section1 Implementing The FindDialog Class
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.
Let's look at \c{FindDialog}'s header file. We define a public function,
\c findText(), 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 private members
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
\snippet examples/addressbook-sdk/part5/finddialog.h findText
\dots
\snippet examples/addressbook-sdk/part5/finddialog.h findClicked
Now, lets look at our constructor in the \c{finddialog.cpp} file. Here, we
set up the private variables, \c lineEdit, \c findButton, and \c findText.
Now, lets look at our constructor in the \c{finddialog.cpp} file.
\snippet examples/addressbook-sdk/part5/finddialog.cpp constructor
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment