Changeset View
Changeset View
Standalone View
Standalone View
kcm/qml/main.qml
Show All 33 Lines | 28 | Item { | |||
---|---|---|---|---|---|
34 | signal requestCreateConnection(int type, string vpnType, string specificType, bool shared) | 34 | signal requestCreateConnection(int type, string vpnType, string specificType, bool shared) | ||
35 | signal requestExportConnection(string connection) | 35 | signal requestExportConnection(string connection) | ||
36 | signal requestToChangeConnection(string name, string path) | 36 | signal requestToChangeConnection(string name, string path) | ||
37 | 37 | | |||
38 | Rectangle { | 38 | Rectangle { | ||
39 | id: background | 39 | id: background | ||
40 | anchors.fill: parent | 40 | anchors.fill: parent | ||
41 | focus: true | 41 | focus: true | ||
42 | color: baseColor | 42 | color: theme.backgroundColor | ||
43 | } | 43 | } | ||
44 | 44 | | |||
45 | PlasmaNM.Handler { | 45 | PlasmaNM.Handler { | ||
46 | id: handler | 46 | id: handler | ||
47 | } | 47 | } | ||
48 | 48 | | |||
49 | PlasmaNM.KcmIdentityModel { | 49 | PlasmaNM.KcmIdentityModel { | ||
50 | id: connectionModel | 50 | id: connectionModel | ||
Show All 23 Lines | 63 | QQC2.TextField { | |||
74 | onTextChanged: { | 74 | onTextChanged: { | ||
75 | editorProxyModel.setFilterRegExp(text) | 75 | editorProxyModel.setFilterRegExp(text) | ||
76 | } | 76 | } | ||
77 | } | 77 | } | ||
78 | 78 | | |||
79 | QQC2.ScrollView { | 79 | QQC2.ScrollView { | ||
80 | id: scrollView | 80 | id: scrollView | ||
81 | 81 | | |||
82 | Component.onCompleted: background.visible = true // show frame | 82 | Component.onCompleted: scrollView.background.visible = true // show frame | ||
83 | 83 | | |||
84 | anchors { | 84 | anchors { | ||
85 | bottom: rightButtonRow.top | 85 | bottom: rightButtonRow.top | ||
86 | bottomMargin: units.smallSpacing | 86 | bottomMargin: units.smallSpacing | ||
87 | left: parent.left | 87 | left: parent.left | ||
88 | right: parent.right | 88 | right: parent.right | ||
89 | top: searchField.bottom | 89 | top: searchField.bottom | ||
90 | } | 90 | } | ||
91 | 91 | | |||
92 | ListView { | 92 | ListView { | ||
93 | id: connectionView | 93 | id: connectionView | ||
94 | 94 | | |||
95 | property bool currentConnectionExportable: false | 95 | property bool currentConnectionExportable: false | ||
96 | property string currentConnectionName | 96 | property string currentConnectionName | ||
97 | property string currentConnectionPath | 97 | property string currentConnectionPath | ||
98 | 98 | | |||
99 | anchors.fill: parent | | |||
100 | clip: true | 99 | clip: true | ||
101 | focus: true | 100 | focus: true | ||
102 | activeFocusOnTab: true | 101 | activeFocusOnTab: true | ||
103 | model: editorProxyModel | 102 | model: editorProxyModel | ||
104 | currentIndex: -1 | 103 | currentIndex: -1 | ||
105 | boundsBehavior: Flickable.StopAtBounds | 104 | boundsBehavior: Flickable.StopAtBounds | ||
106 | section.property: "KcmConnectionType" | 105 | section.property: "KcmConnectionType" | ||
107 | section.delegate: Header { text: section } | 106 | section.delegate: Header { text: section } | ||
▲ Show 20 Lines • Show All 148 Lines • Show Last 20 Lines |