diff --git a/src/ViewWidgets/CustomCommandWidget.qml b/src/ViewWidgets/CustomCommandWidget.qml index e937aef5ee105664e42899e091a72c9a8ce64c83..be1d173bb822ddb34b77553baa2f1f75d6f7de8a 100644 --- a/src/ViewWidgets/CustomCommandWidget.qml +++ b/src/ViewWidgets/CustomCommandWidget.qml @@ -34,7 +34,7 @@ QGCView { "So make sure to test your changes thoroughly before using them in flight.

" + "

Click 'Load Custom Qml file' to provide your custom qml file.

" + "

Click 'Reset' to reset to none.

" + - "

Example usage: http://https://dev.qgroundcontrol.com/en/tools/custom_command_widget.html

" + "

Example usage: https://dev.qgroundcontrol.com/en/tools/custom_command_widget.html

" QGCPalette { id: qgcPal; colorGroupEnabled: enabled } @@ -87,15 +87,18 @@ QGCView { } } } - - QGCLabel { - id: textOutput + ScrollView { + id: scrollContainer anchors.fill: loader - wrapMode: Text.WordWrap - textFormat: Text.RichText - visible: !loader.visible + contentItem: QGCLabel { + id: textOutput + width: scrollContainer.width - _margins*2 + wrapMode: Text.WordWrap + textFormat: Text.RichText + visible: !loader.visible + onLinkActivated: Qt.openUrlExternally(link) + } } - Row { id: buttonRow spacing: ScreenTools.defaultFontPixelWidth @@ -115,6 +118,7 @@ QGCView { onClicked: controller.clearQmlFile() } } + } - } + } }