Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/package/contents/ui/main.qml
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 37 | FolderViewDropArea { | |||
---|---|---|---|---|---|
51 | Layout.maximumHeight: isPopup ? preferredHeight(false) : -1 | 51 | Layout.maximumHeight: isPopup ? preferredHeight(false) : -1 | ||
52 | 52 | | |||
53 | Plasmoid.switchWidth: { | 53 | Plasmoid.switchWidth: { | ||
54 | // Support expanding into the full representation only on vertical panels. | 54 | // Support expanding into the full representation only on vertical panels. | ||
55 | if (isPopup && plasmoid.formFactor == PlasmaCore.Types.Vertical) { | 55 | if (isPopup && plasmoid.formFactor == PlasmaCore.Types.Vertical) { | ||
56 | return units.iconSizeHints.panel; | 56 | return units.iconSizeHints.panel; | ||
57 | } | 57 | } | ||
58 | 58 | | |||
59 | return undefined; | 59 | return 0; | ||
60 | } | 60 | } | ||
61 | 61 | | |||
62 | Plasmoid.switchHeight: { | 62 | Plasmoid.switchHeight: { | ||
63 | // Support expanding into the full representation only on vertical panels. | 63 | // Support expanding into the full representation only on vertical panels. | ||
64 | if (isPopup && plasmoid.formFactor == PlasmaCore.Types.Vertical) { | 64 | if (isPopup && plasmoid.formFactor == PlasmaCore.Types.Vertical) { | ||
65 | return units.iconSizeHints.panel; | 65 | return units.iconSizeHints.panel; | ||
66 | } | 66 | } | ||
67 | 67 | | |||
68 | return undefined; | 68 | return 0; | ||
69 | } | 69 | } | ||
70 | 70 | | |||
71 | LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft | 71 | LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft | ||
72 | LayoutMirroring.childrenInherit: true | 72 | LayoutMirroring.childrenInherit: true | ||
73 | 73 | | |||
74 | property bool isFolder: (plasmoid.pluginName == "org.kde.plasma.folder") | 74 | property bool isFolder: (plasmoid.pluginName == "org.kde.plasma.folder") | ||
75 | property bool isContainment: ("containmentType" in plasmoid) | 75 | property bool isContainment: ("containmentType" in plasmoid) | ||
76 | property bool isPopup: (plasmoid.location != PlasmaCore.Types.Floating) | 76 | property bool isPopup: (plasmoid.location != PlasmaCore.Types.Floating) | ||
▲ Show 20 Lines • Show All 542 Lines • Show Last 20 Lines |