[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: 2009-10-08 1:18:15
Message-ID: 1254964695.807482.31778.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1032525 by sandsmark:
make sure we fill the pixmap with the background color before starting to draw again, \
otherwise we get funny things happening
M +2 -2 map.cpp
--- trunk/playground/utils/filelight/src/part/radialMap/map.cpp #1032524:1032525
@@ -45,7 +45,6 @@
, m_summary(summary)
, m_scheme(QPalette::Active, KColorScheme::View)
{
- m_pixmap.fill(m_scheme.background().color());
//FIXME this is all broken. No longer is a maximum depth!
const int fmh = QFontMetrics(QFont()).height();
@@ -140,7 +139,6 @@
m_rect.setRect(0,0,size,size);
}
m_pixmap = QPixmap(m_rect.size());
- m_pixmap.fill(m_scheme.background().color());
//resize the pixmap
size += MAP_2MARGIN;
@@ -280,6 +278,8 @@
QRect rect = m_rect;
rect.adjust(5, 5, -5, -5);
+ m_pixmap.fill(m_scheme.background().color());
+
//m_rect.moveRight(1); // Uncommenting this breaks repainting when recreating \
map from cache
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic