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
Tobias Hunger
qt-creator
Commits
9c31719c
Commit
9c31719c
authored
Sep 28, 2010
by
hjk
Browse files
debugger: add manual test for QTextCursor and QTextDocument dumper
parent
34e06215
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/manual/gdbdebugger/simple/simple_gdbtest_app.cpp
View file @
9c31719c
...
...
@@ -61,6 +61,8 @@
#include <QtGui/QPainterPath>
#include <QtGui/QRegion>
#include <QtGui/QStandardItemModel>
#include <QtGui/QTextCursor>
#include <QtGui/QTextDocument>
#include <QtNetwork/QHostAddress>
...
...
@@ -1421,6 +1423,20 @@ private:
int
m_id
;
};
void
testQTextCursor
()
{
//int argc = 0;
//char *argv[] = { "xxx", 0 };
//QApplication app(argc, argv);
QTextDocument
doc
;
doc
.
setPlainText
(
"Hallo
\n
World"
);
QTextCursor
tc
=
doc
.
find
(
"all"
);
int
pos
=
tc
.
position
();
int
anc
=
tc
.
anchor
();
Q_UNUSED
(
pos
);
Q_UNUSED
(
anc
);
}
void
testQThread
()
{
Thread
thread1
(
1
);
...
...
@@ -2023,6 +2039,7 @@ int main(int argc, char *argv[])
testFunction
();
testQImage
();
testNoArgumentName
(
1
,
2
,
3
);
testQTextCursor
();
testInput
();
testOutput
();
testHidden
();
...
...
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