Changeset View
Changeset View
Standalone View
Standalone View
applets/appmenu/package/contents/ui/main.qml
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | 55 | onClicked: { | |||
---|---|---|---|---|---|
58 | } else { | 58 | } else { | ||
59 | KCMShell.open("style") | 59 | KCMShell.open("style") | ||
60 | } | 60 | } | ||
61 | } | 61 | } | ||
62 | } | 62 | } | ||
63 | 63 | | |||
64 | Plasmoid.fullRepresentation: GridLayout { | 64 | Plasmoid.fullRepresentation: GridLayout { | ||
65 | id: buttonGrid | 65 | id: buttonGrid | ||
66 | Plasmoid.status: buttonRepeater.count > 0 ? PlasmaCore.Types.ActiveStatus : PlasmaCore.Types.HiddenStatus | 66 | //when we're not enabled set to active to show the configure button | ||
67 | Plasmoid.status: !appletEnabled || buttonRepeater.count > 0 ? | ||||
68 | PlasmaCore.Types.ActiveStatus : PlasmaCore.Types.HiddenStatus | ||||
67 | Layout.minimumWidth: implicitWidth | 69 | Layout.minimumWidth: implicitWidth | ||
68 | Layout.minimumHeight: implicitHeight | 70 | Layout.minimumHeight: implicitHeight | ||
69 | 71 | | |||
70 | flow: root.vertical ? GridLayout.TopToBottom : GridLayout.LeftToRight | 72 | flow: root.vertical ? GridLayout.TopToBottom : GridLayout.LeftToRight | ||
71 | rowSpacing: units.smallSpacing | 73 | rowSpacing: units.smallSpacing | ||
72 | columnSpacing: units.smallSpacing | 74 | columnSpacing: units.smallSpacing | ||
73 | 75 | | |||
74 | Component.onCompleted: { | 76 | Component.onCompleted: { | ||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |