[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/utils/filelight/src/part/radialMap
From: Martin Tobias Holmedahl Sandsmark <sandsmark () samfundet ! no>
Date: 2010-05-26 16:09:58
Message-ID: 20100526160958.E3C17AC8C0 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1130849 by sandsmark:
calculate new center text before repainting
M +4 -9 map.cpp
--- trunk/playground/utils/filelight/src/part/radialMap/map.cpp #1130848:1130849
@@ -66,10 +66,6 @@
void RadialMap::Map::make(const Folder *tree, bool refresh)
{
- //**** determineText seems like pointless optimization
- // but is it good to keep the text consistent?
- // even if it makes it a lie?
-
//slow operation so set the wait cursor
QApplication::setOverrideCursor(Qt::WaitCursor);
@@ -82,12 +78,8 @@
//colour the segments
colorise();
- //paint the pixmap
- paint();
-
+ if (!refresh) {
//determine centerText
- if (!refresh)
- {
int i;
for (i = 2; i > 0; --i)
if (tree->size() > File::DENOMINATOR[i])
@@ -96,6 +88,9 @@
m_centerText = tree->humanReadableSize((File::UnitPrefix)i);
}
+ //paint the pixmap
+ paint();
+
QApplication::restoreOverrideCursor();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic