Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
8672cbec
Commit
8672cbec
authored
Sep 27, 2010
by
hjk
Browse files
debugger: add a manual QDate and QTime test
parent
33c1f962
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp
View file @
8672cbec
...
...
@@ -415,7 +415,27 @@ int testCatchThrow()
return
gotit
;
}
QDateTime
testQDateTime
()
void
testQDate
()
{
QDate
date
;
date
=
QDate
::
currentDate
();
date
=
date
.
addDays
(
5
);
date
=
date
.
addDays
(
5
);
date
=
date
.
addDays
(
5
);
date
=
date
.
addDays
(
5
);
}
void
testQTime
()
{
QTime
time
;
time
=
QTime
::
currentTime
();
time
=
time
.
addSecs
(
5
);
time
=
time
.
addSecs
(
5
);
time
=
time
.
addSecs
(
5
);
time
=
time
.
addSecs
(
5
);
}
void
testQDateTime
()
{
QDateTime
date
;
date
=
QDateTime
::
currentDateTime
();
...
...
@@ -423,7 +443,6 @@ QDateTime testQDateTime()
date
=
date
.
addSecs
(
5
);
date
=
date
.
addSecs
(
5
);
date
=
date
.
addSecs
(
5
);
return
date
;
}
QFileInfo
testQFileInfo
()
...
...
@@ -1980,7 +1999,9 @@ int main(int argc, char *argv[])
testQStack
();
testUninitialized
();
testPointer
();
testQDate
();
testQDateTime
();
testQTime
();
testQFileInfo
();
testObject1
();
testVector1
();
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment