Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
5bbb207d
Commit
5bbb207d
authored
Nov 18, 2018
by
Gus Grubba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CP - Cleanup warnings
parent
e4367ef6
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
25 deletions
+25
-25
AirspaceWeather.qml
src/Airmap/AirspaceWeather.qml
+1
-1
Fact.cc
src/FactSystem/Fact.cc
+8
-8
FactMetaData.h
src/FactSystem/FactMetaData.h
+4
-4
FlightDisplayViewWidgets.qml
src/FlightDisplay/FlightDisplayViewWidgets.qml
+1
-1
CameraCalc.cc
src/MissionManager/CameraCalc.cc
+1
-1
SettingsManager.cc
src/Settings/SettingsManager.cc
+10
-10
No files found.
src/Airmap/AirspaceWeather.qml
View file @
5bbb207d
...
...
@@ -16,7 +16,7 @@ Item {
height
:
_valid
?
weatherRow
.
height
:
0
width
:
_valid
?
weatherRow
.
width
:
0
property
color
contentColor
:
"
#ffffff
"
property
var
iconHeight
:
ScreenTools
.
defaultFontPixelHeight
*
2
property
real
iconHeight
:
ScreenTools
.
defaultFontPixelHeight
*
2
property
bool
_valid
:
QGroundControl
.
airspaceManager
.
weatherInfo
.
valid
property
bool
_celcius
:
QGroundControl
.
settingsManager
.
unitsSettings
.
temperatureUnits
.
rawValue
===
UnitsSettings
.
TemperatureUnitsCelsius
property
int
_tempC
:
_valid
?
QGroundControl
.
airspaceManager
.
weatherInfo
.
temperature
:
0
...
...
src/FactSystem/Fact.cc
View file @
5bbb207d
...
...
@@ -23,10 +23,10 @@ Fact::Fact(QObject* parent)
,
_componentId
(
-
1
)
,
_rawValue
(
0
)
,
_type
(
FactMetaData
::
valueTypeInt32
)
,
_metaData
(
NULL
)
,
_metaData
(
nullptr
)
,
_sendValueChangedSignals
(
true
)
,
_deferredValueChangeSignal
(
false
)
,
_valueSliderModel
(
NULL
)
,
_valueSliderModel
(
nullptr
)
{
FactMetaData
*
metaData
=
new
FactMetaData
(
_type
,
this
);
setMetaData
(
metaData
);
...
...
@@ -40,10 +40,10 @@ Fact::Fact(int componentId, QString name, FactMetaData::ValueType_t type, QObjec
,
_componentId
(
componentId
)
,
_rawValue
(
0
)
,
_type
(
type
)
,
_metaData
(
NULL
)
,
_metaData
(
nullptr
)
,
_sendValueChangedSignals
(
true
)
,
_deferredValueChangeSignal
(
false
)
,
_valueSliderModel
(
NULL
)
,
_valueSliderModel
(
nullptr
)
{
FactMetaData
*
metaData
=
new
FactMetaData
(
_type
,
this
);
setMetaData
(
metaData
);
...
...
@@ -57,10 +57,10 @@ Fact::Fact(const QString& settingsGroup, FactMetaData* metaData, QObject* parent
,
_componentId
(
0
)
,
_rawValue
(
0
)
,
_type
(
metaData
->
type
())
,
_metaData
(
NULL
)
,
_metaData
(
nullptr
)
,
_sendValueChangedSignals
(
true
)
,
_deferredValueChangeSignal
(
false
)
,
_valueSliderModel
(
NULL
)
,
_valueSliderModel
(
nullptr
)
{
qgcApp
()
->
toolbox
()
->
corePlugin
()
->
adjustSettingMetaData
(
settingsGroup
,
*
metaData
);
setMetaData
(
metaData
,
true
/* setDefaultFromMetaData */
);
...
...
@@ -90,11 +90,11 @@ const Fact& Fact::operator=(const Fact& other)
_type
=
other
.
_type
;
_sendValueChangedSignals
=
other
.
_sendValueChangedSignals
;
_deferredValueChangeSignal
=
other
.
_deferredValueChangeSignal
;
_valueSliderModel
=
NULL
;
_valueSliderModel
=
nullptr
;
if
(
_metaData
&&
other
.
_metaData
)
{
*
_metaData
=
*
other
.
_metaData
;
}
else
{
_metaData
=
NULL
;
_metaData
=
nullptr
;
}
return
*
this
;
...
...
src/FactSystem/FactMetaData.h
View file @
5bbb207d
...
...
@@ -48,10 +48,10 @@ public:
typedef
QVariant
(
*
Translator
)(
const
QVariant
&
from
);
FactMetaData
(
QObject
*
parent
=
NULL
);
FactMetaData
(
ValueType_t
type
,
QObject
*
parent
=
NULL
);
FactMetaData
(
ValueType_t
type
,
const
QString
name
,
QObject
*
parent
=
NULL
);
FactMetaData
(
const
FactMetaData
&
other
,
QObject
*
parent
=
NULL
);
FactMetaData
(
QObject
*
parent
=
nullptr
);
FactMetaData
(
ValueType_t
type
,
QObject
*
parent
=
nullptr
);
FactMetaData
(
ValueType_t
type
,
const
QString
name
,
QObject
*
parent
=
nullptr
);
FactMetaData
(
const
FactMetaData
&
other
,
QObject
*
parent
=
nullptr
);
static
QMap
<
QString
,
FactMetaData
*>
createMapFromJsonFile
(
const
QString
&
jsonFilename
,
QObject
*
metaDataParent
);
static
QMap
<
QString
,
FactMetaData
*>
createMapFromJsonArray
(
const
QJsonArray
jsonArray
,
QObject
*
metaDataParent
);
...
...
src/FlightDisplay/FlightDisplayViewWidgets.qml
View file @
5bbb207d
...
...
@@ -157,7 +157,7 @@ Item {
id
:
instrumentsColumn
spacing
:
ScreenTools
.
defaultFontPixelHeight
*
0.25
anchors.top
:
parent
.
top
anchors.topMargin
:
QGroundControl
.
corePlugin
.
options
.
instrumentWidget
.
widgetTopMargin
+
(
ScreenTools
.
defaultFontPixelHeight
*
0.5
)
anchors.topMargin
:
QGroundControl
.
corePlugin
.
options
.
instrumentWidget
?
(
QGroundControl
.
corePlugin
.
options
.
instrumentWidget
.
widgetTopMargin
+
(
ScreenTools
.
defaultFontPixelHeight
*
0.5
))
:
0
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
anchors.right
:
parent
.
right
//-------------------------------------------------------
...
...
src/MissionManager/CameraCalc.cc
View file @
5bbb207d
...
...
@@ -254,8 +254,8 @@ bool CameraCalc::load(const QJsonObject& json, QString& errorString)
{
sideOverlapName
,
QJsonValue
::
Double
,
true
},
};
if
(
!
JsonHelper
::
validateKeys
(
v1Json
,
keyInfoList2
,
errorString
))
{
return
false
;
_disableRecalc
=
false
;
return
false
;
}
_valueSetIsDistanceFact
.
setRawValue
(
v1Json
[
valueSetIsDistanceName
].
toBool
());
...
...
src/Settings/SettingsManager.cc
View file @
5bbb207d
...
...
@@ -15,17 +15,17 @@
SettingsManager
::
SettingsManager
(
QGCApplication
*
app
,
QGCToolbox
*
toolbox
)
:
QGCTool
(
app
,
toolbox
)
#if defined(QGC_AIRMAP_ENABLED)
,
_airMapSettings
(
NULL
)
,
_airMapSettings
(
nullptr
)
#endif
,
_appSettings
(
NULL
)
,
_unitsSettings
(
NULL
)
,
_autoConnectSettings
(
NULL
)
,
_videoSettings
(
NULL
)
,
_flightMapSettings
(
NULL
)
,
_rtkSettings
(
NULL
)
,
_flyViewSettings
(
NULL
)
,
_planViewSettings
(
NULL
)
,
_brandImageSettings
(
NULL
)
,
_appSettings
(
nullptr
)
,
_unitsSettings
(
nullptr
)
,
_autoConnectSettings
(
nullptr
)
,
_videoSettings
(
nullptr
)
,
_flightMapSettings
(
nullptr
)
,
_rtkSettings
(
nullptr
)
,
_flyViewSettings
(
nullptr
)
,
_planViewSettings
(
nullptr
)
,
_brandImageSettings
(
nullptr
)
{
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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