@@ -88,17 +88,51 @@ ApplicationWindow {
8888 color: Style .accentColor
8989 }
9090
91- Text {
92- id: response
93- text: endpointModel .declarativeUiText
94- textFormat: Text .RichText
95- color: Style .ncHeaderTextColor
96- font .pointSize : Style .pixelSize
97- font .underline : true
98- MouseArea {
91+ Button {
92+ id: responseButton
93+ visible: response .text !== " "
94+ flat: true
95+ Layout .fillWidth : true
96+ implicitHeight: Style .activityListButtonHeight
97+
98+ padding: 0
99+ leftPadding: Style .standardSpacing
100+ rightPadding: Style .standardSpacing
101+ spacing: Style .standardSpacing
102+
103+ contentItem: Row {
99104 anchors .fill : parent
100- cursorShape: Qt .PointingHandCursor
101- onClicked: Qt .openUrlExternally (endpointModel .declarativeUiUrl )
105+ anchors .margins : Style .smallSpacing
106+ spacing: Style .standardSpacing
107+
108+ Image {
109+ source: " image://svgimage-custom-color/public.svg/" + palette .windowText
110+ width: Style .minimumActivityItemHeight
111+ height: Style .minimumActivityItemHeight
112+ fillMode: Image .PreserveAspectFit
113+ anchors .verticalCenter : parent .verticalCenter
114+ }
115+
116+ Text {
117+ id: response
118+ text: endpointModel .declarativeUiText
119+ textFormat: Text .RichText
120+ color: Style .ncHeaderTextColor
121+ font .pointSize : Style .pixelSize
122+ font .underline : true
123+ anchors .verticalCenter : parent .verticalCenter
124+ MouseArea {
125+ id: responseArea
126+ anchors .fill : parent
127+ cursorShape: Qt .PointingHandCursor
128+ onClicked: Qt .openUrlExternally (endpointModel .declarativeUiUrl )
129+ }
130+ }
131+ }
132+
133+ ToolTip {
134+ visible: responseButton .hovered
135+ text: qsTr (" Download file" )
102136 }
103137 }
104138
@@ -123,6 +157,8 @@ ApplicationWindow {
123157 required property int index
124158
125159 Button {
160+ id: fileActionButton
161+ flat: true
126162 Layout .fillWidth : true
127163 implicitHeight: Style .activityListButtonHeight
128164
@@ -153,6 +189,11 @@ ApplicationWindow {
153189 }
154190 }
155191
192+ ToolTip {
193+ visible: fileActionButton .hovered
194+ text: name
195+ }
196+
156197 onClicked: endpointModel .createRequest (index)
157198 }
158199 }
0 commit comments