on xenial help sign in
DesktopSpread: improve icon label
25a2efbDaniel d'Andrada
qml/Stages/DesktopSpread.qml+3−1
@@ -326,7 +326,9 @@ FocusScope {
326 Label {
326 Label {
327 Layout.fillWidth: true
327 Layout.fillWidth: true
328 Layout.preferredHeight: units.gu(6)
328 Layout.preferredHeight: units.gu(6)
329− text: model.surface ? model.surface.name : ""
329+ property string surfaceName: model.surface ? model.surface.name : ""
330+ property string applicationName: model.application ? model.application.name : ""
331+ text: surfaceName ? surfaceName : applicationName
330 wrapMode: Text.WordWrap
332 wrapMode: Text.WordWrap
331 elide: Text.ElideRight
333 elide: Text.ElideRight
332 maximumLineCount: 2
334 maximumLineCount: 2