Changeset View
Changeset View
Standalone View
Standalone View
src/declarativeimports/plasmaextracomponents/qml/ScrollArea.qml
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | 34 | QtQuickControls.ScrollView { | |||
---|---|---|---|---|---|
46 | //this is fixed in 5.7 where interactive is split into two properties | 46 | //this is fixed in 5.7 where interactive is split into two properties | ||
47 | 47 | | |||
48 | onContentItemChanged: { | 48 | onContentItemChanged: { | ||
49 | if (contentItem.interactive !== undefined) { | 49 | if (contentItem.interactive !== undefined) { | ||
50 | contentItem.interactive = true; | 50 | contentItem.interactive = true; | ||
51 | } | 51 | } | ||
52 | contentItem.focus = true | 52 | contentItem.focus = true | ||
53 | } | 53 | } | ||
54 | //we want plasmoid popups open as quick as possible at start. | ||||
55 | //this makes sure things with big list views (kickoff, clipboard) | ||||
56 | //are loaded when created, even before they are shown | ||||
57 | Component.onCompleted: { | ||||
58 | if (typeof contentItem.forceLayout === "function") { | ||||
broulik: `typeof contentItem.forceLayout === "function"` | |||||
59 | contentItem.forceLayout(); | ||||
60 | } | ||||
61 | } | ||||
54 | //end hack | 62 | //end hack | ||
55 | } | 63 | } |
typeof contentItem.forceLayout === "function"