diff --git a/ChangeLog.md b/ChangeLog.md index 9d98927e497743ee0a6bfe066f1a42e97aff7b17..149da0210dba7ac3634302bd4359fdabc63c8bb4 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -13,7 +13,11 @@ Note: This file only contains high level features or important fixes. ## 4.0 -### 4.0.6 - Not yet released +## 4.0.7 - Not yet released + +* Fix video page sizing + +### 4.0.6 - Stable * Analyze/Log Download - Fix download on mobile versions of QGC * Fly: Fix problems where Continue Mission and Change Altitude were not available after a Mission Pause. diff --git a/src/FlightMap/Widgets/VideoPageWidget.qml b/src/FlightMap/Widgets/VideoPageWidget.qml index d6c1e01ba36869f4213ff77a8bc29ad17caacb14..af06ab0ebec362a41876cdeaf788e27a9ab8b90a 100644 --- a/src/FlightMap/Widgets/VideoPageWidget.qml +++ b/src/FlightMap/Widgets/VideoPageWidget.qml @@ -26,7 +26,7 @@ import QGroundControl.FactControls 1.0 /// Video streaming page for Instrument Panel PageView Item { width: pageWidth - height: videoGrid.height + (ScreenTools.defaultFontPixelHeight * 2) + height: videoGrid.y + videoGrid.height + _margins anchors.margins: ScreenTools.defaultFontPixelWidth * 2 anchors.centerIn: parent @@ -38,15 +38,19 @@ Item { property int _curCameraIndex: _dynamicCameras ? _dynamicCameras.currentCamera : 0 property bool _isCamera: _dynamicCameras ? _dynamicCameras.cameras.count > 0 : false property var _camera: _isCamera ? (_dynamicCameras.cameras.get(_curCameraIndex) && _dynamicCameras.cameras.get(_curCameraIndex).paramComplete ? _dynamicCameras.cameras.get(_curCameraIndex) : null) : null + property real _margins: ScreenTools.defaultFontPixelWidth / 2 QGCPalette { id:qgcPal; colorGroupEnabled: true } GridLayout { id: videoGrid + anchors.margins: _margins + anchors.top: parent.top + anchors.left: parent.left + anchors.right: parent.right columns: 2 - columnSpacing: ScreenTools.defaultFontPixelWidth * 2 + columnSpacing: _margins rowSpacing: ScreenTools.defaultFontPixelHeight - anchors.centerIn: parent Connections { // For some reason, the normal signal is not reflected in the control below target: QGroundControl.settingsManager.videoSettings.streamEnabled @@ -56,7 +60,7 @@ Item { } // Enable/Disable Video Streaming QGCLabel { - text: qsTr("Enable Stream") + text: qsTr("Enable") font.pointSize: ScreenTools.smallFontPointSize visible: !_camera || !_camera.autoStream } @@ -97,7 +101,7 @@ Item { } //-- Video Fit QGCLabel { - text: qsTr("Video Screen Fit") + text: qsTr("Video Fit") visible: QGroundControl.videoManager.isGStreamer font.pointSize: ScreenTools.smallFontPointSize } @@ -108,13 +112,14 @@ Item { Layout.alignment: Qt.AlignHCenter } QGCLabel { - text: qsTr("File Name"); - visible: QGroundControl.videoManager.isGStreamer + text: qsTr("File Name"); + font.pointSize: ScreenTools.smallFontPointSize + visible: QGroundControl.videoManager.isGStreamer } - TextField { - id: videoFileName - visible: QGroundControl.videoManager.isGStreamer - width: 100 + QGCTextField { + id: videoFileName + Layout.fillWidth: true + visible: QGroundControl.videoManager.isGStreamer } //-- Video Recording QGCLabel { diff --git a/src/QGCApplication.cc b/src/QGCApplication.cc index 3b70f54c29838ec38c18517e95073b8a2646fd61..44a370b16005b709c61d388d13efc612306cd7ba 100644 --- a/src/QGCApplication.cc +++ b/src/QGCApplication.cc @@ -224,10 +224,8 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting) permFile.close(); } - // Set default QtQuick style if not configured - if (QString(getenv("QT_QUICK_CONTROLS_STYLE")).isEmpty()) { - QQuickStyle::setStyle("Universal"); - } + // Always set style to default, this way QT_QUICK_CONTROLS_STYLE environment variable doesn't cause random changes in ui + QQuickStyle::setStyle("Default"); } #endif #endif