[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdesdk/lokalize/src/project
From: Nickolai Shaforostoff <shafff () ukr ! net>
Date: 2009-05-24 14:19:10
Message-ID: 1243174750.214352.9908.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 972298 by shaforo:
highlighting files with no stats (total is zero) - patch by Viesturs Zarins
CCBUG:193028
M +7 -2 projectwidget.cpp
--- trunk/KDE/kdesdk/lokalize/src/project/projectwidget.cpp #972297:972298
@@ -67,9 +67,10 @@
int fuzzy = rect.width();
int total = translated + untranslated + fuzzy;
+ KColorScheme colorScheme(QPalette::Normal);
+
if (total > 0)
{
- KColorScheme colorScheme(QPalette::Normal);
painter->setPen(Qt::white);
QRect myRect(option.rect);
myRect.setWidth(option.rect.width() * translated / total);
@@ -86,10 +87,14 @@
painter->fillRect(myRect, colorScheme.foreground(KColorScheme::NegativeText));
// painter->drawText(myRect,Qt::AlignRight,QString("%1").arg(data.top()));
}
- else
+ else if (total == -1)
{
painter->fillRect(option.rect,Qt::transparent);
}
+ else if (total == 0)
+ {
+ painter->fillRect(option.rect,QBrush(Qt::gray));
+ }
}
else
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic