From abefc8663ac5c9dc15ad08408e224b3a3cef3b6f Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 22 Sep 2010 19:12:09 +0000 Subject: Add a small invisible margin to the selection toggle in case the item-height is nearly equal to the toggle-height. This prevents an accidental execution of application in the details-view with the default icon-size. BUG: 169494 FIXED-IN: 4.6.0 svn path=/trunk/KDE/kdebase/apps/; revision=1178332 --- src/views/selectiontoggle.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/views/selectiontoggle.h') diff --git a/src/views/selectiontoggle.h b/src/views/selectiontoggle.h index 5519272b3..210f1a3aa 100644 --- a/src/views/selectiontoggle.h +++ b/src/views/selectiontoggle.h @@ -53,6 +53,13 @@ public: void setUrl(const KUrl& url); KUrl url() const; + /** + * Sets the margin around the selection-icon in pixels. Per default + * the value is 0. + */ + void setMargin(int margin); + int margin() const; + public slots: virtual void setVisible(bool visible); @@ -83,6 +90,7 @@ private: bool m_isHovered; bool m_leftMouseButtonPressed; int m_fadingValue; + int m_margin; QPixmap m_icon; QTimeLine* m_fadingTimeLine; KUrl m_url; -- cgit v1.3