]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Use scaled size for KFileItemListWidget::iconRect()
authorPeter Penz <peter.penz19@gmail.com>
Tue, 6 Dec 2011 20:35:20 +0000 (21:35 +0100)
committerPeter Penz <peter.penz19@gmail.com>
Tue, 6 Dec 2011 20:38:30 +0000 (21:38 +0100)
This prevents temporary selection rectangle issues when zooming
the icon sizes.

BUG: 287542
FIXED-IN: 4.8.0

src/kitemviews/kfileitemlistwidget.cpp

index c2e43e8e60436dd2755779a5899d80eec68846ee..8b222e9487da679899b9f001b12a827b668687d7 100644 (file)
@@ -157,7 +157,7 @@ QRectF KFileItemListWidget::iconRect() const
 {
     const_cast<KFileItemListWidget*>(this)->triggerCacheRefreshing();
 
-    QRectF bounds = m_hoverPixmapRect;
+    QRectF bounds(m_pixmapPos, m_scaledPixmapSize);
     const qreal margin = styleOption().margin;
     bounds.adjust(-margin, -margin, margin, margin);
     return bounds;