From 2bdce34fe1e6613d2747ab798bccb4fa7de8ca3e Mon Sep 17 00:00:00 2001 From: Emmanuel Pescosta Date: Sat, 24 Aug 2013 21:00:26 +0200 Subject: Adjust the size and position of the selection toggle on icon resize (when changing the zoomlevel). BUG: 310412 REVIEW: 112250 FIXED-IN: 4.11.1 --- src/kitemviews/private/kitemlistselectiontoggle.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/kitemviews/private/kitemlistselectiontoggle.h') diff --git a/src/kitemviews/private/kitemlistselectiontoggle.h b/src/kitemviews/private/kitemlistselectiontoggle.h index a8050d811..ba29293f6 100644 --- a/src/kitemviews/private/kitemlistselectiontoggle.h +++ b/src/kitemviews/private/kitemlistselectiontoggle.h @@ -46,9 +46,11 @@ public: protected: virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event); virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event); + virtual void resizeEvent(QGraphicsSceneResizeEvent* event); private: void updatePixmap(); + int iconSize() const; private: bool m_checked; -- cgit v1.3.1