Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
b19c064f
Commit
b19c064f
authored
Mar 04, 2011
by
hjk
Browse files
examples: fix some krazy warnings
parent
596e1940
Changes
6
Hide whitespace changes
Inline
Side-by-side
doc/examples/addressbook-sdk/part2/addressbook.cpp
View file @
b19c064f
...
...
@@ -95,7 +95,7 @@ void AddressBook::submitContact()
QString
name
=
ui
->
nameLine
->
text
();
QString
address
=
ui
->
addressText
->
toPlainText
();
if
(
name
==
""
||
address
==
""
)
{
if
(
name
.
isEmpty
()
||
address
.
isEmpty
()
)
{
QMessageBox
::
information
(
this
,
tr
(
"Empty Field"
),
tr
(
"Please enter a name and address."
));
return
;
...
...
doc/examples/addressbook-sdk/part3/addressbook.cpp
View file @
b19c064f
...
...
@@ -102,7 +102,7 @@ void AddressBook::submitContact()
QString
name
=
ui
->
nameLine
->
text
();
QString
address
=
ui
->
addressText
->
toPlainText
();
if
(
name
==
""
||
address
==
""
)
{
if
(
name
.
isEmpty
()
||
address
.
isEmpty
()
)
{
QMessageBox
::
information
(
this
,
tr
(
"Empty Field"
),
tr
(
"Please enter a name and address."
));
return
;
...
...
doc/examples/addressbook-sdk/part4/addressbook.cpp
View file @
b19c064f
...
...
@@ -101,7 +101,7 @@ void AddressBook::submitContact()
QString
name
=
ui
->
nameLine
->
text
();
QString
address
=
ui
->
addressText
->
toPlainText
();
if
(
name
==
""
||
address
==
""
)
{
if
(
name
.
isEmpty
()
||
address
.
isEmpty
()
)
{
QMessageBox
::
information
(
this
,
tr
(
"Empty Field"
),
tr
(
"Please enter a name and address."
));
}
...
...
doc/examples/addressbook-sdk/part5/addressbook.cpp
View file @
b19c064f
...
...
@@ -96,7 +96,7 @@ void AddressBook::submitContact()
QString
name
=
ui
->
nameLine
->
text
();
QString
address
=
ui
->
addressText
->
toPlainText
();
if
(
name
==
""
||
address
==
""
)
{
if
(
name
.
isEmpty
()
||
address
.
isEmpty
()
)
{
QMessageBox
::
information
(
this
,
tr
(
"Empty Field"
),
tr
(
"Please enter a name and address."
));
updateInterface
(
NavigationMode
);
...
...
doc/examples/addressbook-sdk/part6/addressbook.cpp
View file @
b19c064f
...
...
@@ -102,7 +102,7 @@ void AddressBook::submitContact()
QString
name
=
ui
->
nameLine
->
text
();
QString
address
=
ui
->
addressText
->
toPlainText
();
if
(
name
==
""
||
address
==
""
)
{
if
(
name
.
isEmpty
()
||
address
.
isEmpty
()
)
{
QMessageBox
::
information
(
this
,
tr
(
"Empty Field"
),
tr
(
"Please enter a name and address."
));
updateInterface
(
NavigationMode
);
...
...
doc/examples/addressbook-sdk/part7/addressbook.cpp
View file @
b19c064f
...
...
@@ -99,7 +99,7 @@ void AddressBook::submitContact()
QString
name
=
ui
->
nameLine
->
text
();
QString
address
=
ui
->
addressText
->
toPlainText
();
if
(
name
==
""
||
address
==
""
)
{
if
(
name
.
isEmpty
()
||
address
.
isEmpty
()
)
{
QMessageBox
::
information
(
this
,
tr
(
"Empty Field"
),
tr
(
"Please enter a name and address."
));
updateInterface
(
NavigationMode
);
...
...
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