From 452c7124224c8983d8cb2b9acc85e1b5f79a7799 Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Thu, 9 Jul 2009 14:24:53 +0200
Subject: [PATCH] debugger: fix regression + whitespace at eol

Double click on debugger input did not jump to the output anymore.
---
 src/plugins/debugger/debuggeroutputwindow.cpp | 20 +++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/plugins/debugger/debuggeroutputwindow.cpp b/src/plugins/debugger/debuggeroutputwindow.cpp
index cfecc8963c2..5d588c2fec9 100644
--- a/src/plugins/debugger/debuggeroutputwindow.cpp
+++ b/src/plugins/debugger/debuggeroutputwindow.cpp
@@ -208,22 +208,22 @@ private:
             QPlainTextEdit::keyPressEvent(ev);
     }
 
-    void mouseDoubleClickEvent(QMouseEvent *ev) 
+    void mouseDoubleClickEvent(QMouseEvent *ev)
     {
         QString line = cursorForPosition(ev->pos()).block().text();
         int n = 0;
-       
-        // cut time string 
+
+        // cut time string
         if (line.size() > 18 && line.at(0) == '[')
             line = line.mid(18);
         //qDebug() << line;
-        
+
         for (int i = 0; i != line.size(); ++i) {
             QChar c = line.at(i);
             if (!c.isDigit())
                 break;
             n = 10 * n + c.unicode() - '0';
-        }        
+        }
         emit commandSelected(n);
     }
 
@@ -231,14 +231,14 @@ private:
     {
        menu->addAction(theDebuggerAction(ExecuteCommand));
     }
-    
-    void focusInEvent(QFocusEvent *ev)  
+
+    void focusInEvent(QFocusEvent *ev)
     {
         emit statusMessageRequested(tr("Type Ctrl-<Return> to execute a line."), -1);
         QPlainTextEdit::focusInEvent(ev);
     }
 
-    void focusOutEvent(QFocusEvent *ev)  
+    void focusOutEvent(QFocusEvent *ev)
     {
         emit statusMessageRequested(QString(), -1);
         QPlainTextEdit::focusOutEvent(ev);
@@ -264,9 +264,9 @@ public:
 
 public slots:
     void gotoResult(int i)
-    {   
+    {
         QString needle = QString::number(i) + '^';
-        QString needle2 = QLatin1String(">:") + needle;
+        QString needle2 = QLatin1String(">") + needle;
         QTextCursor cursor(document());
         do {
             const QString line = cursor.block().text();
-- 
GitLab