File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
panels/dock/searchitem/package Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ import org.deepin.ds 1.0
99import org.deepin.dtk 1.0 as D
1010import org.deepin.ds.dock 1.0
1111
12+ import Qt.labs.platform 1.1 as LP
13+
1214AppletItem {
1315 property bool useColumnLayout: Panel .position % 2
1416 property int dockOrder: Panel .itemAlignment === Dock .CenterAlignment ? 5 : 14
@@ -60,5 +62,27 @@ AppletItem {
6062 }
6163 }
6264 }
65+ MouseArea {
66+ anchors .fill : parent
67+ acceptedButtons: Qt .RightButton
68+ onClicked: {
69+ platformMenuLoader .active = true
70+ platformMenuLoader .item .open ()
71+ }
72+ }
73+ }
74+
75+ Loader {
76+ id: platformMenuLoader
77+ active: false
78+ sourceComponent: LP .Menu {
79+ id: platformMenu
80+ LP .MenuItem {
81+ text: qsTr (" SearchConfig" )
82+ onTriggered: {
83+ Applet .toggleGrandSearchConfig ()
84+ }
85+ }
86+ }
6387 }
6488}
You can’t perform that action at this time.
0 commit comments