Changeset View
Changeset View
Standalone View
Standalone View
src/kcm/package/contents/ui/Advanced.qml
Show All 22 Lines | |||||
23 | import QtQuick.Controls 1.3 | 23 | import QtQuick.Controls 1.3 | ||
24 | 24 | | |||
25 | import org.kde.plasma.private.volume 0.1 | 25 | import org.kde.plasma.private.volume 0.1 | ||
26 | 26 | | |||
27 | ScrollView { | 27 | ScrollView { | ||
28 | id: scrollView | 28 | id: scrollView | ||
29 | 29 | | |||
30 | ColumnLayout { | 30 | ColumnLayout { | ||
31 | width: scrollView.viewport.width | 31 | Component.onCompleted: { | ||
32 | // Normal binding causes binding loops | ||||
33 | width = Qt.binding(function() { | ||||
34 | return scrollView.viewport.width; | ||||
35 | }); | ||||
36 | } | ||||
32 | 37 | | |||
33 | Header { | 38 | Header { | ||
34 | Layout.fillWidth: true | 39 | Layout.fillWidth: true | ||
35 | enabled: 0 < view.count | 40 | enabled: 0 < view.count | ||
36 | text: i18n("Device Profiles") | 41 | text: i18n("Device Profiles") | ||
37 | disabledText: i18nc("@label", "No Device Profiles Available") | 42 | disabledText: i18nc("@label", "No Device Profiles Available") | ||
38 | } | 43 | } | ||
39 | 44 | | |||
Show All 39 Lines |