┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/selectiontoggle.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2010-09-22 19:12:09 +0000
committerPeter Penz <[email protected]>2010-09-22 19:12:09 +0000
commitabefc8663ac5c9dc15ad08408e224b3a3cef3b6f (patch)
tree92907c9753ab9ec2718e2eb78531a6c984ffb8cd /src/views/selectiontoggle.h
parent5517e4cf10c8aee590b404072aebaffb55bafec3 (diff)
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
Diffstat (limited to 'src/views/selectiontoggle.h')
-rw-r--r--src/views/selectiontoggle.h8
1 files changed, 8 insertions, 0 deletions
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;