Changeset View
Changeset View
Standalone View
Standalone View
src/kcm/package/contents/ui/Advanced.qml
Show All 14 Lines | 1 | /* | |||
---|---|---|---|---|---|
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | import QtQuick 2.0 | 21 | import QtQuick 2.0 | ||
22 | import QtQuick.Layouts 1.1 | 22 | import QtQuick.Layouts 1.1 | ||
23 | import QtQuick.Controls 1.3 | 23 | import QtQuick.Controls 2.2 | ||
24 | 24 | | |||
25 | import org.kde.plasma.private.volume 0.1 | 25 | import org.kde.plasma.private.volume 0.1 | ||
26 | import org.kde.kcoreaddons 1.0 as KCoreAddons | 26 | import org.kde.kcoreaddons 1.0 as KCoreAddons | ||
27 | 27 | | |||
28 | 28 | | |||
29 | ScrollView { | 29 | ScrollView { | ||
30 | id: scrollView | 30 | id: scrollView | ||
31 | clip: true | ||||
32 | | ||||
drosca: This should be set where this item is used (main.qml). | |||||
33 | // Show the frame | ||||
34 | Component.onCompleted: scrollView.background.visible = true; | ||||
31 | 35 | | |||
32 | ColumnLayout { | 36 | ColumnLayout { | ||
33 | Component.onCompleted: { | 37 | anchors.fill: parent | ||
34 | // Normal binding causes binding loops | | |||
35 | width = Qt.binding(function() { | | |||
36 | return scrollView.viewport.width; | | |||
37 | }); | | |||
38 | } | | |||
39 | 38 | | |||
40 | Header { | 39 | Header { | ||
41 | Layout.fillWidth: true | 40 | Layout.fillWidth: true | ||
drosca: `anchors.fill: parent` ? | |||||
42 | enabled: view.count > 0 | 41 | enabled: view.count > 0 | ||
43 | text: i18nd("kcm_pulseaudio", "Device Profiles") | 42 | text: i18nd("kcm_pulseaudio", "Device Profiles") | ||
44 | disabledText: i18ndc("kcm_pulseaudio", "@label", "No Device Profiles Available") | 43 | disabledText: i18ndc("kcm_pulseaudio", "@label", "No Device Profiles Available") | ||
45 | } | 44 | } | ||
46 | 45 | | |||
47 | ListView { | 46 | ListView { | ||
48 | id: view | 47 | id: view | ||
49 | Layout.fillWidth: true | 48 | Layout.fillWidth: true | ||
▲ Show 20 Lines • Show All 196 Lines • Show Last 20 Lines |
This should be set where this item is used (main.qml).