diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-07-25 01:39:22 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-07-25 01:40:47 +0200 |
commit | b1e49b5bad02f6dbab9578d2cdd0ad73b18e1c4a (patch) | |
tree | e3a9decf35a99844c23a8ca6dd99ec461667d796 /components | |
parent | 8a4f5212db7e7dcf15194d4af32b035f04a8ae9a (diff) | |
download | kube-b1e49b5bad02f6dbab9578d2cdd0ad73b18e1c4a.tar.gz kube-b1e49b5bad02f6dbab9578d2cdd0ad73b18e1c4a.zip |
A ListDelegate
Diffstat (limited to 'components')
-rw-r--r-- | components/kube/contents/ui/LogView.qml | 19 |
1 files changed, 1 insertions, 18 deletions
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 { | |||
54 | details.message = currentItem.currentData.message | 54 | details.message = currentItem.currentData.message |
55 | details.timestamp = currentItem.currentData.timestamp | 55 | details.timestamp = currentItem.currentData.timestamp |
56 | } | 56 | } |
57 | 57 | delegate: Kube.ListDelegate { | |
58 | delegate: Rectangle { | ||
59 | property variant currentData: model | ||
60 | height: Kube.Units.gridUnit * 3 | ||
61 | width: listView.width | ||
62 | |||
63 | border.color: Kube.Colors.buttonColor | ||
64 | border.width: 1 | ||
65 | color: listView.currentIndex == index ? Kube.Colors.highlightColor : Kube.Colors.viewBackgroundColor | ||
66 | |||
67 | Kube.Label { | 58 | Kube.Label { |
68 | id: description | 59 | id: description |
69 | anchors { | 60 | anchors { |
@@ -106,14 +97,6 @@ Controls.SplitView { | |||
106 | color: Kube.Colors.disabledTextColor | 97 | color: Kube.Colors.disabledTextColor |
107 | font.pointSize: 9 | 98 | font.pointSize: 9 |
108 | } | 99 | } |
109 | |||
110 | MouseArea { | ||
111 | id: mouseArea | ||
112 | anchors.fill: parent | ||
113 | onClicked: { | ||
114 | listView.currentIndex = index | ||
115 | } | ||
116 | } | ||
117 | } | 100 | } |
118 | } | 101 | } |
119 | } | 102 | } |