From f0e7992d2a61b518623e619328c7173f1bb7d261 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Wed, 24 May 2017 18:23:32 +0300 Subject: [PATCH] increase separator size on dragging --this way we can move the surrounding launchers to catch up also edges --- plasmoid/package/contents/ui/task/TaskDelegate.qml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plasmoid/package/contents/ui/task/TaskDelegate.qml b/plasmoid/package/contents/ui/task/TaskDelegate.qml index e989bff2c..d0b473b65 100644 --- a/plasmoid/package/contents/ui/task/TaskDelegate.qml +++ b/plasmoid/package/contents/ui/task/TaskDelegate.qml @@ -46,6 +46,9 @@ MouseArea{ if (!visible) return 0; + if (isSeparator) + return root.vertical ? separatorItem.width : (root.dragSource ? 5+root.iconMargin : 0); + if (root.vertical) return wrapper.width; else @@ -56,6 +59,9 @@ MouseArea{ if (!visible) return 0; + if (isSeparator) + return !root.vertical ? separatorItem.height : (root.dragSource ? 5+root.iconMargin: 0); + if (root.vertical) return hiddenSpacerLeft.height + wrapper.height + hiddenSpacerRight.height; else @@ -217,8 +223,8 @@ MouseArea{ opacity: 0.5 visible: mainItemContainer.isSeparator - width: root.vertical ? root.iconSize : 1 - height: !root.vertical ? root.iconSize : 1 + width: root.vertical ? root.iconSize : (root.dragSource) ? 5+root.iconMargin: 1 + height: !root.vertical ? root.iconSize : (root.dragSource) ? 5+root.iconMargin: 1 property int localThickMargin: root.statesLineSize + root.thickMarginBase + 4