[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdevelop/parts/outputviews
From: Jens Dagerbo <jens.dagerbo () swipnet ! se>
Date: 2004-01-23 15:04:30
Message-ID: 20040123150430.8FF481911 () office ! kde ! org
[Download RAW message or body]
CVS commit by dagerbo:
Greatly speed up switching to "full compiler output"
Probably reducing the risk of bug 72830. Feedback please.
M +8 -2 makeitem.cpp 1.10
M +12 -3 makewidget.cpp 1.100
--- kdevelop/parts/outputviews/makeitem.cpp #1.9:1.10
@@ -67,6 +67,12 @@ QString MakeItem::text( EOutputLevel )
QString MakeItem::formattedText( EOutputLevel level, bool bright_bg )
{
- return QString("<code>").append( icon() ).append("<font color=\"").append( \
color( bright_bg) ).append(
- "\">").append( text(level) ).append("</font></code>").append( br() \
); + if ( level == eFull )
+ {
+ return text( level );
+ }
+ else
+ {
+ return QString("<code>").append( icon() ).append("<font \
color=\"").append( color( bright_bg) ).append("\">").append( text(level) \
).append("</font></code>").append( br() ); + }
}
--- kdevelop/parts/outputviews/makewidget.cpp #1.99:1.100
@@ -162,4 +162,13 @@ MakeWidget::MakeWidget(MakeViewPart *par
updateSettingsFromConfig();
+ if ( m_compilerOutputLevel == eFull )
+ {
+ setTextFormat( Qt::LogText );
+ }
+ else
+ {
+ setTextFormat( Qt::RichText );
+ }
+
if ( m_bLineWrapping )
setWordWrap(WidgetWidth);
@@ -729,7 +738,7 @@ void MakeWidget::refill()
}
-void MakeWidget::slotVeryShortCompilerOutput() { setCompilerOutputLevel(eVeryShort); \
}
-void MakeWidget::slotShortCompilerOutput() { setCompilerOutputLevel(eShort); }
-void MakeWidget::slotFullCompilerOutput() { setCompilerOutputLevel(eFull); }
+void MakeWidget::slotVeryShortCompilerOutput() { setTextFormat( Qt::RichText ); \
setCompilerOutputLevel(eVeryShort); } +void MakeWidget::slotShortCompilerOutput() { \
setTextFormat( Qt::RichText ); setCompilerOutputLevel(eShort); } +void \
MakeWidget::slotFullCompilerOutput() { setTextFormat( Qt::LogText ); \
setCompilerOutputLevel(eFull); }
void MakeWidget::setCompilerOutputLevel(EOutputLevel level)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic