summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-31 16:29:01 -0600
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-31 17:32:54 -0600
commit36b2ee162ffd57c70d21c27ff25801f894886569 (patch)
tree2d91883719791960721c8c6734d8fb16a8e7b488 /components
parent6bf396f79b926d6a1ea04226474550d9962d52a8 (diff)
downloadkube-36b2ee162ffd57c70d21c27ff25801f894886569.tar.gz
kube-36b2ee162ffd57c70d21c27ff25801f894886569.zip
Use a regular Label with a SelectableItem in the logview
This allows to copy all labels within the layout. Maybe a bit too magic atm.
Diffstat (limited to 'components')
-rw-r--r--components/kube/contents/ui/LogView.qml20
1 files changed, 14 insertions, 6 deletions
diff --git a/components/kube/contents/ui/LogView.qml b/components/kube/contents/ui/LogView.qml
index 299c8e67..e085e449 100644
--- a/components/kube/contents/ui/LogView.qml
+++ b/components/kube/contents/ui/LogView.qml
@@ -125,13 +125,17 @@ Controls.SplitView {
125 } 125 }
126 color: Kube.Colors.viewBackgroundColor 126 color: Kube.Colors.viewBackgroundColor
127 GridLayout { 127 GridLayout {
128 anchors.fill: parent 128 id: gridLayout
129 anchors {
130 top: parent.top
131 left: parent.left
132 }
129 columns: 2 133 columns: 2
130 Kube.Label { 134 Kube.Label {
131 text: qsTr("Account:") 135 text: qsTr("Account:")
132 visible: details.accountName 136 visible: details.accountName
133 } 137 }
134 Kube.SelectableLabel { 138 Kube.Label {
135 text: details.accountName 139 text: details.accountName
136 visible: details.accountName 140 visible: details.accountName
137 } 141 }
@@ -139,7 +143,7 @@ Controls.SplitView {
139 text: qsTr("Account Id:") 143 text: qsTr("Account Id:")
140 visible: details.accountId 144 visible: details.accountId
141 } 145 }
142 Kube.SelectableLabel { 146 Kube.Label {
143 text: details.accountId 147 text: details.accountId
144 visible: details.accountId 148 visible: details.accountId
145 } 149 }
@@ -147,20 +151,20 @@ Controls.SplitView {
147 text: qsTr("Resource Id:") 151 text: qsTr("Resource Id:")
148 visible: details.resourceId 152 visible: details.resourceId
149 } 153 }
150 Kube.SelectableLabel { 154 Kube.Label {
151 text: details.resourceId 155 text: details.resourceId
152 visible: details.resourceId 156 visible: details.resourceId
153 } 157 }
154 Kube.Label { 158 Kube.Label {
155 text: qsTr("Timestamp:") 159 text: qsTr("Timestamp:")
156 } 160 }
157 Kube.SelectableLabel { 161 Kube.Label {
158 text: Qt.formatDateTime(details.timestamp, " hh:mm:ss dd MMM yyyy") 162 text: Qt.formatDateTime(details.timestamp, " hh:mm:ss dd MMM yyyy")
159 } 163 }
160 Kube.Label { 164 Kube.Label {
161 text: qsTr("Message:") 165 text: qsTr("Message:")
162 } 166 }
163 Kube.SelectableLabel { 167 Kube.Label {
164 text: details.message 168 text: details.message
165 wrapMode: Text.Wrap 169 wrapMode: Text.Wrap
166 Layout.fillWidth: true 170 Layout.fillWidth: true
@@ -171,6 +175,10 @@ Controls.SplitView {
171 } 175 }
172 //TODO offer a possible explanation for known errors and a path to resolution. 176 //TODO offer a possible explanation for known errors and a path to resolution.
173 } 177 }
178
179 Kube.SelectableItem {
180 layout: gridLayout
181 }
174 } 182 }
175 } 183 }
176} 184}