Changeset View
Changeset View
Standalone View
Standalone View
applets/kimpanel/package/contents/ui/main.qml
Show All 29 Lines | 26 | Item { | |||
---|---|---|---|---|---|
30 | property bool vertical: plasmoid.formFactor === PlasmaCore.Types.Vertical | 30 | property bool vertical: plasmoid.formFactor === PlasmaCore.Types.Vertical | ||
31 | 31 | | |||
32 | LayoutMirroring.enabled: !vertical && Qt.application.layoutDirection === Qt.RightToLeft | 32 | LayoutMirroring.enabled: !vertical && Qt.application.layoutDirection === Qt.RightToLeft | ||
33 | LayoutMirroring.childrenInherit: true | 33 | LayoutMirroring.childrenInherit: true | ||
34 | 34 | | |||
35 | Layout.minimumWidth: vertical ? units.iconSizes.small : items.implicitWidth | 35 | Layout.minimumWidth: vertical ? units.iconSizes.small : items.implicitWidth | ||
36 | Layout.minimumHeight: !vertical ? units.iconSizes.small : items.implicitHeight | 36 | Layout.minimumHeight: !vertical ? units.iconSizes.small : items.implicitHeight | ||
37 | Layout.preferredHeight: Layout.minimumHeight | 37 | Layout.preferredHeight: Layout.minimumHeight | ||
38 | Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation | 38 | Plasmoid.preferredRepresentation: Plasmoid.compactRepresentation | ||
39 | Plasmoid.compactRepresentation: PlasmaCore.IconItem { | ||||
40 | source: "input-keyboard" | ||||
41 | width: parent.width | ||||
42 | height: parent.height | ||||
43 | | ||||
44 | MouseArea { | ||||
45 | anchors.fill: parent | ||||
46 | acceptedButtons: Qt.LeftButton | ||||
47 | | ||||
48 | onClicked: { | ||||
49 | plasmoid.expanded = !plasmoid.expanded | ||||
50 | } | ||||
51 | } | ||||
52 | } | ||||
39 | 53 | | |||
40 | InputPanel { } | 54 | InputPanel { } | ||
41 | 55 | | |||
42 | Flow { | 56 | Flow { | ||
43 | id: items | 57 | id: items | ||
44 | width: parent.width | 58 | width: parent.width | ||
45 | height: parent.height | 59 | height: parent.height | ||
46 | x: (parent.width - childrenRect.width) / 2 | 60 | x: (parent.width - childrenRect.width) / 2 | ||
▲ Show 20 Lines • Show All 168 Lines • Show Last 20 Lines |