From ae33422ede3ec5671d2964de0e2fbcadba43b61b Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Mon, 24 Jul 2017 20:29:32 +0200 Subject: QML UI: replace all checkboxes with our own As per title, helps simplify theme modifications. Signed-off-by: Joakim Bygdell --- mobile-widgets/qml/DownloadedDiveDelegate.qml | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'mobile-widgets/qml/DownloadedDiveDelegate.qml') diff --git a/mobile-widgets/qml/DownloadedDiveDelegate.qml b/mobile-widgets/qml/DownloadedDiveDelegate.qml index a842684db..99ec100a8 100644 --- a/mobile-widgets/qml/DownloadedDiveDelegate.qml +++ b/mobile-widgets/qml/DownloadedDiveDelegate.qml @@ -34,32 +34,12 @@ Kirigami.AbstractListItem { NumberAnimation { property: "opacity"; from: 0; to: 1.0; duration: 400 } NumberAnimation { property: "scale"; from: 0; to: 1.0; duration: 400 } } - CheckBox { + SsrfCheckBox { id: diveIsSelected checked: innerListItem.selected; width: childrenRect.width - Kirigami.Units.smallSpacing; height: childrenRect.heigh - Kirigami.Units.smallSpacing; anchors.verticalCenter: parent.verticalCenter - indicator: Rectangle { - visible: diveIsSelected - implicitWidth: 20 - implicitHeight: 20 - //x: isBluetooth.leftPadding - y: parent.height / 2 - height / 2 - radius: 4 - border.color: diveIsSelected.down ? subsurfaceTheme.primaryColor : subsurfaceTheme.darkerPrimaryColor - color: subsurfaceTheme.backgroundColor - - Rectangle { - width: 12 - height: 12 - x: 4 - y: 4 - radius: 3 - color: diveIsSelected.down ? subsurfaceTheme.primaryColor : subsurfaceTheme.darkerPrimaryColor - visible: diveIsSelected && diveIsSelected.checked - } - } onClicked: { console.log("Clicked on the checkbox of item " + index) importModel.selectRow(index) -- cgit v1.2.3-70-g09d2