debugger: make ctrl-click to navigate between input and output pane (much) faster

This commit is contained in:
hjk
2010-06-01 12:32:52 +02:00
parent 8ffc25bbad
commit 8b806c4d8d

View File

@@ -309,6 +309,9 @@ public slots:
QString needle2 = QLatin1Char('>') + needle;
QTextCursor cursor(document());
do {
cursor = document()->find(needle, cursor);
if (cursor.isNull())
break; // Not found.
const QString line = cursor.block().text();
if (line.startsWith(needle) || line.startsWith(needle2)) {
setFocus();