Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwindecoration/package/contents/ui/ButtonGroup.qml
Show All 40 Lines | 36 | KDecoration.Button { | |||
---|---|---|---|---|---|
41 | settings: settingsItem | 41 | settings: settingsItem | ||
42 | type: model["button"] | 42 | type: model["button"] | ||
43 | width: iconSize | 43 | width: iconSize | ||
44 | height: iconSize | 44 | height: iconSize | ||
45 | anchors.fill: Drag.active ? undefined : parent | 45 | anchors.fill: Drag.active ? undefined : parent | ||
46 | Drag.keys: [ "decoButtonRemove", view.key ] | 46 | Drag.keys: [ "decoButtonRemove", view.key ] | ||
47 | Drag.active: dragArea.drag.active | 47 | Drag.active: dragArea.drag.active | ||
48 | Drag.onActiveChanged: view.dragging = Drag.active | 48 | Drag.onActiveChanged: view.dragging = Drag.active | ||
49 | color: palette.windowText | | |||
50 | } | 49 | } | ||
51 | MouseArea { | 50 | MouseArea { | ||
52 | id: dragArea | 51 | id: dragArea | ||
53 | cursorShape: Qt.SizeAllCursor | 52 | cursorShape: Qt.SizeAllCursor | ||
54 | anchors.fill: parent | 53 | anchors.fill: parent | ||
55 | drag.target: button | 54 | drag.target: button | ||
56 | onReleased: { | 55 | onReleased: { | ||
57 | if (drag.target.Drag.target) { | 56 | if (drag.target.Drag.target) { | ||
Show All 19 Lines |