Changeset View
Changeset View
Standalone View
Standalone View
applets/appmenu/package/contents/ui/main.qml
Show All 29 Lines | 29 | Item { | |||
---|---|---|---|---|---|
30 | id: root | 30 | id: root | ||
31 | 31 | | |||
32 | readonly property bool vertical: plasmoid.formFactor === PlasmaCore.Types.Vertical | 32 | readonly property bool vertical: plasmoid.formFactor === PlasmaCore.Types.Vertical | ||
33 | readonly property bool view: plasmoid.configuration.compactView | 33 | readonly property bool view: plasmoid.configuration.compactView | ||
34 | readonly property bool menuAvailable: appMenuModel.menuAvailable | 34 | readonly property bool menuAvailable: appMenuModel.menuAvailable | ||
35 | 35 | | |||
36 | readonly property bool kcmAuthorized: KCMShell.authorize(["style.desktop"]).length > 0 | 36 | readonly property bool kcmAuthorized: KCMShell.authorize(["style.desktop"]).length > 0 | ||
37 | 37 | | |||
38 | onViewChanged: { | 38 | function onViewChanged() { | ||
39 | plasmoid.nativeInterface.view = view | 39 | plasmoid.nativeInterface.view = view | ||
40 | } | 40 | } | ||
41 | 41 | | |||
42 | Plasmoid.preferredRepresentation: (plasmoid.configuration.compactView || vertical) ? Plasmoid.compactRepresentation : Plasmoid.fullRepresentation | 42 | Plasmoid.preferredRepresentation: (plasmoid.configuration.compactView || vertical) ? Plasmoid.compactRepresentation : Plasmoid.fullRepresentation | ||
43 | 43 | | |||
44 | Plasmoid.compactRepresentation: PlasmaComponents.ToolButton { | 44 | Plasmoid.compactRepresentation: PlasmaComponents.ToolButton { | ||
45 | readonly property int fakeIndex: 0 | 45 | readonly property int fakeIndex: 0 | ||
46 | Layout.fillWidth: false | 46 | Layout.fillWidth: false | ||
▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines |