Commit 072a8238 authored by DonLakeFlyer's avatar DonLakeFlyer

parent ebf188a0
...@@ -13,7 +13,11 @@ Note: This file only contains high level features or important fixes. ...@@ -13,7 +13,11 @@ Note: This file only contains high level features or important fixes.
## 4.0 ## 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 * 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. * Fly: Fix problems where Continue Mission and Change Altitude were not available after a Mission Pause.
......
...@@ -26,7 +26,7 @@ import QGroundControl.FactControls 1.0 ...@@ -26,7 +26,7 @@ import QGroundControl.FactControls 1.0
/// Video streaming page for Instrument Panel PageView /// Video streaming page for Instrument Panel PageView
Item { Item {
width: pageWidth width: pageWidth
height: videoGrid.height + (ScreenTools.defaultFontPixelHeight * 2) height: videoGrid.y + videoGrid.height + _margins
anchors.margins: ScreenTools.defaultFontPixelWidth * 2 anchors.margins: ScreenTools.defaultFontPixelWidth * 2
anchors.centerIn: parent anchors.centerIn: parent
...@@ -38,15 +38,19 @@ Item { ...@@ -38,15 +38,19 @@ Item {
property int _curCameraIndex: _dynamicCameras ? _dynamicCameras.currentCamera : 0 property int _curCameraIndex: _dynamicCameras ? _dynamicCameras.currentCamera : 0
property bool _isCamera: _dynamicCameras ? _dynamicCameras.cameras.count > 0 : false 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 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 } QGCPalette { id:qgcPal; colorGroupEnabled: true }
GridLayout { GridLayout {
id: videoGrid id: videoGrid
anchors.margins: _margins
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
columns: 2 columns: 2
columnSpacing: ScreenTools.defaultFontPixelWidth * 2 columnSpacing: _margins
rowSpacing: ScreenTools.defaultFontPixelHeight rowSpacing: ScreenTools.defaultFontPixelHeight
anchors.centerIn: parent
Connections { Connections {
// For some reason, the normal signal is not reflected in the control below // For some reason, the normal signal is not reflected in the control below
target: QGroundControl.settingsManager.videoSettings.streamEnabled target: QGroundControl.settingsManager.videoSettings.streamEnabled
...@@ -56,7 +60,7 @@ Item { ...@@ -56,7 +60,7 @@ Item {
} }
// Enable/Disable Video Streaming // Enable/Disable Video Streaming
QGCLabel { QGCLabel {
text: qsTr("Enable Stream") text: qsTr("Enable")
font.pointSize: ScreenTools.smallFontPointSize font.pointSize: ScreenTools.smallFontPointSize
visible: !_camera || !_camera.autoStream visible: !_camera || !_camera.autoStream
} }
...@@ -97,7 +101,7 @@ Item { ...@@ -97,7 +101,7 @@ Item {
} }
//-- Video Fit //-- Video Fit
QGCLabel { QGCLabel {
text: qsTr("Video Screen Fit") text: qsTr("Video Fit")
visible: QGroundControl.videoManager.isGStreamer visible: QGroundControl.videoManager.isGStreamer
font.pointSize: ScreenTools.smallFontPointSize font.pointSize: ScreenTools.smallFontPointSize
} }
...@@ -108,13 +112,14 @@ Item { ...@@ -108,13 +112,14 @@ Item {
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
} }
QGCLabel { QGCLabel {
text: qsTr("File Name"); text: qsTr("File Name");
visible: QGroundControl.videoManager.isGStreamer font.pointSize: ScreenTools.smallFontPointSize
visible: QGroundControl.videoManager.isGStreamer
} }
TextField { QGCTextField {
id: videoFileName id: videoFileName
visible: QGroundControl.videoManager.isGStreamer Layout.fillWidth: true
width: 100 visible: QGroundControl.videoManager.isGStreamer
} }
//-- Video Recording //-- Video Recording
QGCLabel { QGCLabel {
......
...@@ -224,10 +224,8 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting) ...@@ -224,10 +224,8 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting)
permFile.close(); permFile.close();
} }
// Set default QtQuick style if not configured // Always set style to default, this way QT_QUICK_CONTROLS_STYLE environment variable doesn't cause random changes in ui
if (QString(getenv("QT_QUICK_CONTROLS_STYLE")).isEmpty()) { QQuickStyle::setStyle("Default");
QQuickStyle::setStyle("Universal");
}
} }
#endif #endif
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment