Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/package/contents/ui/ConfigFilter.qml
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Line(s) | 90 | ScrollView { | |||
---|---|---|---|---|---|
98 | ListView { | 98 | ListView { | ||
99 | model: mimeTypesModel | 99 | model: mimeTypesModel | ||
100 | 100 | | |||
101 | delegate: RowLayout { | 101 | delegate: RowLayout { | ||
102 | CheckBox { | 102 | CheckBox { | ||
103 | Layout.maximumWidth: 18 // FIXME HACK: Use actual radio button width. | 103 | Layout.maximumWidth: 18 // FIXME HACK: Use actual radio button width. | ||
104 | 104 | | |||
105 | checked: model.checked | 105 | checked: model.checked | ||
106 | 106 | onCheckedChanged: model.checked = checked | |||
107 | onCheckedChanged: { | | |||
108 | if (checked != model.checked) { | | |||
109 | mimeTypesModel.setRowChecked(model.index, checked); | | |||
110 | } | | |||
111 | } | | |||
112 | } | 107 | } | ||
113 | 108 | | |||
114 | PlasmaCore.IconItem { | 109 | PlasmaCore.IconItem { | ||
115 | anchors.verticalCenter: parent.verticalCenter | 110 | anchors.verticalCenter: parent.verticalCenter | ||
116 | 111 | | |||
117 | width: units.iconSizes.small | 112 | width: units.iconSizes.small | ||
118 | height: units.iconSizes.small | 113 | height: units.iconSizes.small | ||
119 | 114 | | |||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |