From b1e49b5bad02f6dbab9578d2cdd0ad73b18e1c4a Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 25 Jul 2017 01:39:22 +0200 Subject: A ListDelegate --- components/kube/contents/ui/LogView.qml | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'components') diff --git a/components/kube/contents/ui/LogView.qml b/components/kube/contents/ui/LogView.qml index b278c2e9..b71d3692 100644 --- a/components/kube/contents/ui/LogView.qml +++ b/components/kube/contents/ui/LogView.qml @@ -54,16 +54,7 @@ Controls.SplitView { details.message = currentItem.currentData.message details.timestamp = currentItem.currentData.timestamp } - - delegate: Rectangle { - property variant currentData: model - height: Kube.Units.gridUnit * 3 - width: listView.width - - border.color: Kube.Colors.buttonColor - border.width: 1 - color: listView.currentIndex == index ? Kube.Colors.highlightColor : Kube.Colors.viewBackgroundColor - + delegate: Kube.ListDelegate { Kube.Label { id: description anchors { @@ -106,14 +97,6 @@ Controls.SplitView { color: Kube.Colors.disabledTextColor font.pointSize: 9 } - - MouseArea { - id: mouseArea - anchors.fill: parent - onClicked: { - listView.currentIndex = index - } - } } } } -- cgit v1.2.3