Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
29f66547
Commit
29f66547
authored
Apr 11, 2019
by
Gus Grubba
Browse files
Set minimum to Qt 5.11
Windows fixes
parent
54483e91
Changes
13
Show whitespace changes
Inline
Side-by-side
src/AnalyzeView/GeoTagController.cc
View file @
29f66547
...
...
@@ -16,6 +16,7 @@
#include
<QDebug>
#include
<cfloat>
#include
<QDir>
#include
<QUrl>
#include
"ExifParser.h"
#include
"ULogParser.h"
...
...
@@ -38,7 +39,7 @@ GeoTagController::~GeoTagController()
void
GeoTagController
::
setLogFile
(
QString
filename
)
{
filename
.
replace
(
"file://"
,
""
);
filename
=
QUrl
(
filename
).
toLocalFile
(
);
if
(
!
filename
.
isEmpty
())
{
_worker
.
setLogFile
(
filename
);
emit
logFileChanged
(
filename
);
...
...
@@ -47,7 +48,7 @@ void GeoTagController::setLogFile(QString filename)
void
GeoTagController
::
setImageDirectory
(
QString
dir
)
{
dir
.
replace
(
"file://"
,
""
);
dir
=
QUrl
(
dir
).
toLocalFile
(
);
if
(
!
dir
.
isEmpty
())
{
_worker
.
setImageDirectory
(
dir
);
emit
imageDirectoryChanged
(
dir
);
...
...
@@ -56,7 +57,7 @@ void GeoTagController::setImageDirectory(QString dir)
void
GeoTagController
::
setSaveDirectory
(
QString
dir
)
{
dir
.
replace
(
"file://"
,
""
);
dir
=
QUrl
(
dir
).
toLocalFile
(
);
if
(
!
dir
.
isEmpty
())
{
_worker
.
setSaveDirectory
(
dir
);
emit
saveDirectoryChanged
(
dir
);
...
...
src/AnalyzeView/GeoTagPage.qml
View file @
29f66547
...
...
@@ -7,10 +7,10 @@
*
****************************************************************************/
import
QtQuick
2.3
import
QtQuick
.
Controls
1.2
import
QtQuick
2.11
import
QtQuick
.
Controls
2.4
import
QtQuick
.
Dialogs
1.3
import
QtQuick
.
Layouts
1.1
2
import
QtQuick
.
Layouts
1.1
1
import
QGroundControl
1.0
import
QGroundControl
.
Palette
1.0
...
...
@@ -40,7 +40,7 @@ AnalyzePage {
//-----------------------------------------------------------------
ProgressBar
{
id
:
progressBar
maximumValue
:
100
to
:
100
value
:
geoController
.
progress
Layout.fillWidth
:
true
Layout.alignment
:
Qt
.
AlignVCenter
...
...
@@ -113,7 +113,7 @@ AnalyzePage {
selectFolder
:
true
selectExisting
:
true
onAccepted
:
{
geoController
.
i
mageDir
ectory
=
openLogFile
.
folder
geoController
.
selectI
mageDir
=
openLogFile
.
folder
close
()
}
}
...
...
@@ -141,7 +141,7 @@ AnalyzePage {
selectFolder
:
true
selectExisting
:
true
onAccepted
:
{
geoController
.
saveDirectory
=
openLogFile
.
folder
geoController
.
saveDirectory
=
selectDestDir
.
folder
close
()
}
}
...
...
src/AnalyzeView/LogDownloadPage.qml
View file @
29f66547
...
...
@@ -73,7 +73,7 @@ AnalyzePage {
title
:
qsTr
(
"
Date
"
)
width
:
ScreenTools
.
defaultFontPixelWidth
*
34
horizontalAlignment
:
Text
.
AlignHCenter
delegate
:
Text
{
delegate
:
Text
{
text
:
{
var
o
=
logController
.
model
.
get
(
styleData
.
row
)
if
(
o
)
{
...
...
src/FlightDisplay/MultiVehicleList.qml
View file @
29f66547
...
...
@@ -149,31 +149,31 @@ Item {
QGCButton
{
text
:
"
Arm
"
visible
:
!
_vehicle
.
armed
visible
:
_vehicle
&&
!
_vehicle
.
armed
onClicked
:
_vehicle
.
armed
=
true
}
QGCButton
{
text
:
"
Start Mission
"
visible
:
_vehicle
.
armed
&&
_vehicle
.
flightMode
!==
_vehicle
.
missionFlightMode
visible
:
_vehicle
&&
_vehicle
.
armed
&&
_vehicle
.
flightMode
!==
_vehicle
.
missionFlightMode
onClicked
:
_vehicle
.
startMission
()
}
QGCButton
{
text
:
"
Pause
"
visible
:
_vehicle
.
armed
&&
_vehicle
.
pauseVehicleSupported
visible
:
_vehicle
&&
_vehicle
.
armed
&&
_vehicle
.
pauseVehicleSupported
onClicked
:
_vehicle
.
pauseVehicle
()
}
QGCButton
{
text
:
"
RTL
"
visible
:
_vehicle
.
armed
&&
_vehicle
.
flightMode
!==
_vehicle
.
rtlFlightMode
visible
:
_vehicle
&&
_vehicle
.
armed
&&
_vehicle
.
flightMode
!==
_vehicle
.
rtlFlightMode
onClicked
:
_vehicle
.
flightMode
=
_vehicle
.
rtlFlightMode
}
QGCButton
{
text
:
"
Take control
"
visible
:
_vehicle
.
armed
&&
_vehicle
.
flightMode
!==
_vehicle
.
takeControlFlightMode
visible
:
_vehicle
&&
_vehicle
.
armed
&&
_vehicle
.
flightMode
!==
_vehicle
.
takeControlFlightMode
onClicked
:
_vehicle
.
flightMode
=
_vehicle
.
takeControlFlightMode
}
}
// Row
...
...
src/QmlControls/QGCViewDialogContainer.qml
View file @
29f66547
...
...
@@ -7,7 +7,7 @@
*
****************************************************************************/
import
QtQuick
2.1
2
import
QtQuick
2.1
1
import
QtQuick
.
Controls
2.4
import
QtQuick
.
Dialogs
1.3
...
...
src/ui/MainQmlWindow.qml
View file @
29f66547
...
...
@@ -8,10 +8,10 @@
****************************************************************************/
import
QtQuick
2.1
2
import
QtQuick
2.1
1
import
QtQuick
.
Controls
2.4
import
QtQuick
.
Dialogs
1.3
import
QtQuick
.
Layouts
1.1
2
import
QtQuick
.
Layouts
1.1
1
import
QGroundControl
1.0
import
QGroundControl
.
Palette
1.0
...
...
@@ -23,8 +23,8 @@ import QGroundControl.FlightMap 1.0
/// Native QML top level window
ApplicationWindow
{
id
:
mainWindow
width
:
1
024
height
:
768
width
:
1
280
height
:
1024
visible
:
true
readonly
property
real
_topBottomMargins
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
...
...
@@ -517,8 +517,9 @@ ApplicationWindow {
height
:
mainWindow
.
height
*
0.666
modal
:
true
focus
:
true
x
:
Math
.
round
((
mainWindow
.
width
-
width
)
*
0.5
)
y
:
Math
.
round
((
mainWindow
.
height
-
height
)
*
0.5
)
closePolicy
:
Popup
.
CloseOnEscape
|
Popup
.
CloseOnPressOutside
anchors.centerIn
:
parent
background
:
Rectangle
{
anchors.fill
:
parent
color
:
qgcPal
.
window
...
...
@@ -613,9 +614,9 @@ ApplicationWindow {
Popup
{
id
:
systemMessageArea
y
:
ScreenTools
.
defaultFontPixelHeight
x
:
(
mainWindow
.
width
-
width
)
*
0.5
x
:
Math
.
round
(
(
mainWindow
.
width
-
width
)
*
0.5
)
width
:
mainWindow
.
width
*
0.55
height
:
ScreenTools
.
defaultFontPixelHeight
*
6
height
:
ScreenTools
.
defaultFontPixelHeight
*
4
modal
:
false
focus
:
true
closePolicy
:
Popup
.
CloseOnEscape
...
...
@@ -651,7 +652,7 @@ ApplicationWindow {
Flickable
{
id
:
systemMessageFlick
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
anchors.fill
:
parent
contentHeight
:
systemMessageText
.
height
contentWidth
:
systemMessageText
.
width
...
...
@@ -739,7 +740,6 @@ ApplicationWindow {
id
:
loader
onLoaded
:
{
indicatorDropdown
.
x
=
mapFromGlobal
(
indicatorDropdown
.
centerX
,
0
).
x
console
.
log
(
indicatorDropdown
.
x
)
}
}
onOpened
:
{
...
...
src/ui/toolbar/BatteryIndicator.qml
View file @
29f66547
...
...
@@ -7,8 +7,8 @@
*
****************************************************************************/
import
QtQuick
2.1
2
import
QtQuick
.
Layouts
1.1
2
import
QtQuick
2.1
1
import
QtQuick
.
Layouts
1.1
1
import
QGroundControl
1.0
import
QGroundControl
.
Controls
1.0
...
...
src/ui/toolbar/GPSIndicator.qml
View file @
29f66547
...
...
@@ -7,8 +7,8 @@
*
****************************************************************************/
import
QtQuick
2.1
2
import
QtQuick
.
Layouts
1.1
2
import
QtQuick
2.1
1
import
QtQuick
.
Layouts
1.1
1
import
QGroundControl
1.0
import
QGroundControl
.
Controls
1.0
...
...
src/ui/toolbar/GPSRTKIndicator.qml
View file @
29f66547
...
...
@@ -7,8 +7,8 @@
*
****************************************************************************/
import
QtQuick
2.1
2
import
QtQuick
.
Layouts
1.1
2
import
QtQuick
2.1
1
import
QtQuick
.
Layouts
1.1
1
import
QGroundControl
1.0
import
QGroundControl
.
Controls
1.0
...
...
src/ui/toolbar/JoystickIndicator.qml
View file @
29f66547
...
...
@@ -7,8 +7,8 @@
*
****************************************************************************/
import
QtQuick
2.1
2
import
QtQuick
.
Layouts
1.1
2
import
QtQuick
2.1
1
import
QtQuick
.
Layouts
1.1
1
import
QGroundControl
1.0
import
QGroundControl
.
Controls
1.0
...
...
src/ui/toolbar/MainToolBarIndicators.qml
View file @
29f66547
...
...
@@ -7,10 +7,10 @@
*
****************************************************************************/
import
QtQuick
2.1
2
import
QtQuick
2.1
1
import
QtQuick
.
Controls
2.4
import
QtQuick
.
Dialogs
1.3
import
QtQuick
.
Layouts
1.1
2
import
QtQuick
.
Layouts
1.1
1
import
QGroundControl
1.0
import
QGroundControl
.
Controls
1.0
...
...
src/ui/toolbar/RCRSSIIndicator.qml
View file @
29f66547
...
...
@@ -7,8 +7,8 @@
*
****************************************************************************/
import
QtQuick
2.1
2
import
QtQuick
.
Layouts
1.1
2
import
QtQuick
2.1
1
import
QtQuick
.
Layouts
1.1
1
import
QGroundControl
1.0
import
QGroundControl
.
Controls
1.0
...
...
src/ui/toolbar/TelemetryRSSIIndicator.qml
View file @
29f66547
...
...
@@ -7,8 +7,8 @@
*
****************************************************************************/
import
QtQuick
2.1
2
import
QtQuick
.
Layouts
1.1
2
import
QtQuick
2.1
1
import
QtQuick
.
Layouts
1.1
1
import
QGroundControl
1.0
import
QGroundControl
.
Controls
1.0
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment