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
df04fd06
Commit
df04fd06
authored
15 years ago
by
Kavindra Devi Palaraja
Browse files
Options
Downloads
Patches
Plain Diff
Doc - More of Part 5
Reviewed-By: TrustMe
parent
9549205c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/addressbook-sdk.qdoc
+14
-2
14 additions, 2 deletions
doc/addressbook-sdk.qdoc
doc/examples/addressbook-sdk/part5/finddialog.cpp
+2
-0
2 additions, 0 deletions
doc/examples/addressbook-sdk/part5/finddialog.cpp
with
16 additions
and
2 deletions
doc/addressbook-sdk.qdoc
+
14
−
2
View file @
df04fd06
...
...
@@ -734,7 +734,7 @@
which we subclass in this chapter, to implement a FindDialog class.
\section1 Designing
\c
FindDialog
\section1 Designing
The
FindDialog
#image
...
...
@@ -751,7 +751,7 @@
vertical.
\section1 Implementing
\c
FindDialog
\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
...
...
@@ -791,6 +791,18 @@
we clear the contents of \c lineEdit and hide the dialog.
\snippet examples/addressbook-sdk/part5/finddialog.cpp findClicked
The \c findText variable has a public getter function, \c getFindText(),
associated with it. Since we only ever set \c findText directly in both
the constructor and in hte \c findClicked() function, we do not create a
setter function to accompany \c getFindText(). Because \c getFindText() is
public, classes instantiating and using \c FindDialog can always access the
search string that the user has entered and accepted.
\snippet examples/addressbook-sdk/part5/finddialog.cpp getFindText
\section1 The AddressBook Class
*/
...
...
This diff is collapsed.
Click to expand it.
doc/examples/addressbook-sdk/part5/finddialog.cpp
+
2
−
0
View file @
df04fd06
...
...
@@ -43,7 +43,9 @@ void FindDialog::findClicked()
}
//! [findClicked]
//! [getFindText]
QString
FindDialog
::
getFindText
()
{
return
findText
;
}
//! [getFindText]
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