From 516566fe52ce56dadd98b258083735010b371972 Mon Sep 17 00:00:00 2001
From: mak
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() } } + } - } + } } -- 2.22.0