Changeset View
Changeset View
Standalone View
Standalone View
tests/components/radiobutton3.qml
1 | import QtQuick 2.0 | 1 | import QtQuick 2.0 | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | import org.kde.plasma.components 2.0 as PlasmaComponents | 3 | import org.kde.plasma.components 2.0 as PlasmaComponents | ||
4 | import QtQuick.Layouts 1.2 | 4 | import QtQuick.Layouts 1.2 | ||
5 | 5 | | |||
6 | Rectangle | 6 | ComponentBase { | ||
7 | { | | |||
8 | width: 500 | | |||
9 | height: 500 | | |||
10 | color: "white" | | |||
11 | | ||||
12 | Grid { | 7 | Grid { | ||
13 | anchors.fill: parent | 8 | anchors.fill: parent | ||
14 | anchors.margins: 20 | 9 | anchors.margins: 20 | ||
15 | spacing: 4 | 10 | spacing: 4 | ||
16 | columns: 2 | 11 | columns: 2 | ||
17 | 12 | | |||
18 | Label { | 13 | PlasmaComponents.Label { | ||
19 | text: "text" | 14 | text: "text" | ||
20 | } | 15 | } | ||
21 | PlasmaComponents.RadioButton { | 16 | PlasmaComponents.RadioButton { | ||
22 | text: "Some awesome radiobutton" | 17 | text: "Some awesome radiobutton" | ||
23 | } | 18 | } | ||
24 | 19 | | |||
25 | Label { | 20 | PlasmaComponents.Label { | ||
26 | text: "focus" | 21 | text: "focus" | ||
27 | } | 22 | } | ||
28 | PlasmaComponents.RadioButton { | 23 | PlasmaComponents.RadioButton { | ||
29 | text: "Some awesome radiobutton" | 24 | text: "Some awesome radiobutton" | ||
30 | focus: true | 25 | focus: true | ||
31 | } | 26 | } | ||
32 | 27 | | |||
33 | Label { | 28 | PlasmaComponents.Label { | ||
34 | text: "checked" | 29 | text: "checked" | ||
35 | } | 30 | } | ||
36 | PlasmaComponents.RadioButton { | 31 | PlasmaComponents.RadioButton { | ||
37 | text: "Some awesome radiobutton" | 32 | text: "Some awesome radiobutton" | ||
38 | checked: true | 33 | checked: true | ||
39 | } | 34 | } | ||
40 | 35 | | |||
41 | Label { | 36 | PlasmaComponents.Label { | ||
42 | text: "disabled" | 37 | text: "disabled" | ||
43 | } | 38 | } | ||
44 | PlasmaComponents.RadioButton { | 39 | PlasmaComponents.RadioButton { | ||
45 | text: "Some awesome radiobutton" | 40 | text: "Some awesome radiobutton" | ||
46 | enabled: false | 41 | enabled: false | ||
47 | } | 42 | } | ||
48 | 43 | | |||
49 | Label { | 44 | PlasmaComponents.Label { | ||
50 | text: "disabled and checked" | 45 | text: "disabled and checked" | ||
51 | } | 46 | } | ||
52 | PlasmaComponents.RadioButton { | 47 | PlasmaComponents.RadioButton { | ||
53 | text: "Some awesome radiobutton" | 48 | text: "Some awesome radiobutton" | ||
54 | enabled: false | 49 | enabled: false | ||
55 | checked: true | 50 | checked: true | ||
56 | } | 51 | } | ||
57 | } | 52 | } | ||
58 | } | 53 | } | ||
59 | 54 | |