From c41500f9d2a0bcd866f059d3cf95af7f1fd5044d Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Thu, 28 Jan 2016 12:21:44 -0800 Subject: [PATCH] Running scripts can now show script URL --- .../resources/qml/dialogs/RunningScripts.qml | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/interface/resources/qml/dialogs/RunningScripts.qml b/interface/resources/qml/dialogs/RunningScripts.qml index eb56b59b66..5aec9ef3cf 100644 --- a/interface/resources/qml/dialogs/RunningScripts.qml +++ b/interface/resources/qml/dialogs/RunningScripts.qml @@ -123,26 +123,42 @@ Window { } ListView { + id: listView clip: true anchors { fill: parent; margins: 0 } model: runningScriptsModel delegate: Rectangle { + id: rectangle + clip: true radius: 3 anchors { left: parent.left; right: parent.right } - height: scriptName.height + 12 - color: index % 2 ? "#ddd" : "#eee" + height: scriptName.height + 12 + (ListView.isCurrentItem ? scriptName.height + 6 : 0) + color: ListView.isCurrentItem ? "#39f" : + index % 2 ? "#ddd" : "#eee" Text { - anchors { left: parent.left; leftMargin: 4; verticalCenter: parent.verticalCenter } id: scriptName + anchors { left: parent.left; leftMargin: 4; top: parent.top; topMargin:6 } text: name } + Text { + id: scriptUrl + anchors { left: scriptName.left; right: parent.right; rightMargin: 4; top: scriptName.bottom; topMargin: 6 } + text: url + elide: Text.ElideMiddle + } + + MouseArea { + anchors.fill: parent + onClicked: listView.currentIndex = index + } + Row { - anchors.verticalCenter: parent.verticalCenter + anchors.verticalCenter: scriptName.verticalCenter anchors.right: parent.right anchors.rightMargin: 4 spacing: 4