Commit d599dc1f authored by hjk's avatar hjk
Browse files

debugger: add manual test for default constructed QTextCursor

parent 060e2300
...@@ -1473,7 +1473,8 @@ void testQTextCursor() ...@@ -1473,7 +1473,8 @@ void testQTextCursor()
//QApplication app(argc, argv); //QApplication app(argc, argv);
QTextDocument doc; QTextDocument doc;
doc.setPlainText("Hallo\nWorld"); doc.setPlainText("Hallo\nWorld");
QTextCursor tc = doc.find("all"); QTextCursor tc;
tc = doc.find("all");
int pos = tc.position(); int pos = tc.position();
int anc = tc.anchor(); int anc = tc.anchor();
Q_UNUSED(pos); Q_UNUSED(pos);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment