[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdevelop/parts/grepview
From:       Jens Dagerbo <jens.dagerbo () swipnet ! se>
Date:       2004-02-19 5:12:45
Message-ID: 20040219051245.3D59F909F () office ! kde ! org
[Download RAW message or body]

CVS commit by dagerbo: 

fixed some minor bugs


  M +12 -9     grepviewwidget.cpp   1.27


--- kdevelop/parts/grepview/grepviewwidget.cpp  #1.26:1.27
@@ -139,5 +139,5 @@ void GrepViewWidget::showDialog()
 }
 
-
+// @todo - put this somewhere common - or just use Qt if possible
 static QString escape(const QString &str)
 {
@@ -235,4 +235,5 @@ void GrepViewWidget::childFinished(bool 
 
     insertItem(new ProcessListBoxItem(i18n("*** %n match found. ***", "*** %n \
matches found. ***", m_matchCount), ProcessListBoxItem::Diagnostic)); +    \
maybeScrollToBottom();  
     ProcessWidget::childFinished(normal, status);
@@ -270,5 +271,5 @@ void GrepViewWidget::insertStdoutLine(co
                     // selecting filename will display line 1 of file,
                     // otherwise, line of requested search
-                    if (findItem(filename,BeginsWith|ExactMatch) == 0)
+                    if (findItem(filename,CaseSensitive|ExactMatch) == 0)
                                                         {
                                                          insertItem(new \
GrepListBoxItem(filename, "1", str, true)); @@ -274,8 +275,10 @@ void \
                GrepViewWidget::insertStdoutLine(co
                                                          insertItem(new \
                GrepListBoxItem(filename, "1", str, true));
                                                          insertItem(new \
                GrepListBoxItem(filename, linenumber, str, false));
-
                                                         }
-                                                else insertItem(new \
                GrepListBoxItem(filename, linenumber, str, false));
-
+                    else 
+                    {
+                        insertItem(new GrepListBoxItem(filename, linenumber, str, \
false)); +                    }
+                    maybeScrollToBottom();
                 }
             m_matchCount++;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic