From 34b09c5c72b51c2a91a24191c84ea1e2ecef51e4 Mon Sep 17 00:00:00 2001 From: Johan Smith Agudelo Rodriguez Date: Mon, 5 Jun 2017 19:12:43 -0500 Subject: [PATCH] improvements to drop down button --- .../configuration/LatteDockConfiguration.qml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/shell/package/contents/configuration/LatteDockConfiguration.qml b/shell/package/contents/configuration/LatteDockConfiguration.qml index e828bee86..6b9738a83 100644 --- a/shell/package/contents/configuration/LatteDockConfiguration.qml +++ b/shell/package/contents/configuration/LatteDockConfiguration.qml @@ -300,7 +300,17 @@ PlasmaCore.FrameSvgItem { enabled = dock.freeEdges().length > 0 } + MouseArea { + anchors.fill: parent + acceptedButtons: Qt.RightButton + onClicked: { + menu.visualParent = addDock + menu.open() + } + } + PlasmaCore.IconItem { + id: dropDownButton source: "arrow-down" anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter @@ -309,7 +319,6 @@ PlasmaCore.FrameSvgItem { PlasmaComponents.Menu { id: menu - visualParent: addDock PlasmaComponents.MenuItem { text: i18n("Add and copy the current launchers") onClicked: { @@ -320,7 +329,9 @@ PlasmaCore.FrameSvgItem { MouseArea { anchors.fill: parent + acceptedButtons: Qt.LeftButton | Qt.RightButton onClicked: { + menu.visualParent = dropDownButton menu.open() } }