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

List:       kde-commits
Subject:    KDE/kdebase/runtime/drkonqi
From:       Milian Wolff <mail () milianw ! de>
Date:       2010-08-20 19:20:40
Message-ID: 20100820192040.64B8EAC855 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1166082 by mwolff:

highlight crap in grey

 M  +3 -0      gdbhighlighter.cpp  
 M  +1 -0      gdbhighlighter.h  


--- trunk/KDE/kdebase/runtime/drkonqi/gdbhighlighter.cpp #1166081:1166082
@@ -41,6 +41,7 @@
     funcFormat.setForeground(scheme.foreground(KColorScheme::VisitedText));
     funcFormat.setFontWeight(QFont::Bold);
     otheridFormat.setForeground(scheme.foreground(KColorScheme::PositiveText));
+    crapFormat.setForeground(scheme.foreground(KColorScheme::InactiveText));
 }
 
 void GdbHighlighter::highlightBlock(const QString& text)
@@ -77,6 +78,8 @@
             setFormat(cur, diff, crashFormat);
         } else if (line.type() == BacktraceLine::ThreadStart || line.type() == \
BacktraceLine::ThreadIndicator) {  setFormat(cur, diff, threadFormat);
+        } else if (line.type() == BacktraceLine::Crap) {
+            setFormat(cur, diff, crapFormat);
         } else if (line.type() == BacktraceLine::StackFrame) {
             if (!line.fileName().isEmpty()) {
                 int colonPos = line.fileName().lastIndexOf(':');
--- trunk/KDE/kdebase/runtime/drkonqi/gdbhighlighter.h #1166081:1166082
@@ -38,6 +38,7 @@
     QTextCharFormat urlFormat;
     QTextCharFormat funcFormat;
     QTextCharFormat otheridFormat;
+    QTextCharFormat crapFormat;
 };
 
 #endif // GDBHIGHLIGHTER_H


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

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