Changeset View
Changeset View
Standalone View
Standalone View
applets/trash/package/contents/ui/main.qml
Show All 39 Lines | 30 | DragDrop.DropArea { | |||
---|---|---|---|---|---|
40 | Layout.minimumWidth: { | 40 | Layout.minimumWidth: { | ||
41 | if (constrained) { | 41 | if (constrained) { | ||
42 | return formFactor === PlasmaCore.Types.Horizontal ? height : 1 | 42 | return formFactor === PlasmaCore.Types.Horizontal ? height : 1 | ||
43 | } | 43 | } | ||
44 | return text.width | 44 | return text.width | ||
45 | } | 45 | } | ||
46 | Layout.minimumHeight: { | 46 | Layout.minimumHeight: { | ||
47 | if (constrained) { | 47 | if (constrained) { | ||
48 | formFactor === PlasmaCore.Types.Vertical ? width : 1 | 48 | return formFactor === PlasmaCore.Types.Vertical ? width : 1 | ||
49 | } | 49 | } | ||
50 | return units.iconSizes.small + text.height | 50 | return units.iconSizes.small + text.height | ||
51 | } | 51 | } | ||
52 | 52 | | |||
53 | Layout.maximumWidth: inPanel ? units.iconSizeHints.panel : -1 | 53 | Layout.maximumWidth: inPanel ? units.iconSizeHints.panel : -1 | ||
54 | Layout.maximumHeight: inPanel ? units.iconSizeHints.panel : -1 | 54 | Layout.maximumHeight: inPanel ? units.iconSizeHints.panel : -1 | ||
55 | 55 | | |||
56 | readonly property int formFactor: plasmoid.formFactor | 56 | readonly property int formFactor: plasmoid.formFactor | ||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |