forked from qt-creator/qt-creator
debugger: make ctrl-click to navigate between input and output pane (much) faster
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user