diff options
| author | Peter Penz <[email protected]> | 2011-12-07 15:30:55 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-12-07 15:34:34 +0100 |
| commit | 6c29a1d98a490e585d0e9d9a4eb4824e72756390 (patch) | |
| tree | df320bfb2d4ac00323958c0e3aa2e19b3a260052 /src/kitemviews/kfileitemlistwidget.h | |
| parent | 539b88cc5ffaf47fbf17894f06bdc43648853841 (diff) | |
Fix icon boundaries issue
The size of the icon boundaries should be as minimal as possible.
The patch for fixing the zooming-issues with the selection resulted
into a minor regression where the icon boundaries might be too large.
This patch remembers the original size of the pixmap to be able
to scale m_iconRect.
Diffstat (limited to 'src/kitemviews/kfileitemlistwidget.h')
| -rw-r--r-- | src/kitemviews/kfileitemlistwidget.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/kitemviews/kfileitemlistwidget.h b/src/kitemviews/kfileitemlistwidget.h index 5baaa1b28..8f7397b75 100644 --- a/src/kitemviews/kfileitemlistwidget.h +++ b/src/kitemviews/kfileitemlistwidget.h @@ -139,8 +139,9 @@ private: QPixmap m_pixmap; QSize m_scaledPixmapSize; - QRectF m_hoverPixmapRect; - QPixmap m_hoverPixmap; + QSize m_originalPixmapSize; // Size of pixmap before it gets converted to a square pixmap + QRectF m_iconRect; // Cache for KItemListWidget::iconRect() + QPixmap m_hoverPixmap; // Cache for modified m_pixmap when hovering the item QPointF m_textPos[TextIdCount]; QStaticText m_text[TextIdCount]; |
