Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwindecoration/qml/ButtonGroup.qml
Show All 24 Lines | |||||
25 | 25 | | |||
26 | ListView { | 26 | ListView { | ||
27 | id: view | 27 | id: view | ||
28 | property string key | 28 | property string key | ||
29 | property bool dragging: false | 29 | property bool dragging: false | ||
30 | orientation: ListView.Horizontal | 30 | orientation: ListView.Horizontal | ||
31 | interactive: false | 31 | interactive: false | ||
32 | spacing: units.smallSpacing | 32 | spacing: units.smallSpacing | ||
33 | implicitHeight: units.iconSizes.small | 33 | implicitHeight: units.iconSizes.medium | ||
34 | implicitWidth: count * (units.iconSizes.small + units.smallSpacing) - Math.min(1, count) * units.smallSpacing | 34 | implicitWidth: count * (units.iconSizes.medium + units.smallSpacing) - Math.min(1, count) * units.smallSpacing | ||
35 | delegate: Item { | 35 | delegate: Item { | ||
36 | width: units.iconSizes.small | 36 | width: units.iconSizes.medium | ||
37 | height: units.iconSizes.small | 37 | height: units.iconSizes.medium | ||
38 | KDecoration.Button { | 38 | KDecoration.Button { | ||
39 | id: button | 39 | id: button | ||
40 | property int itemIndex: index | 40 | property int itemIndex: index | ||
41 | property var buttonsModel: parent.ListView.view.model | 41 | property var buttonsModel: parent.ListView.view.model | ||
42 | bridge: bridgeItem.bridge | 42 | bridge: bridgeItem.bridge | ||
43 | settings: settingsItem | 43 | settings: settingsItem | ||
44 | type: model["button"] | 44 | type: model["button"] | ||
45 | anchors.fill: Drag.active ? undefined : parent | 45 | anchors.fill: Drag.active ? undefined : parent | ||
Show All 30 Lines |