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
5bbb207d
Commit
5bbb207d
authored
Nov 18, 2018
by
Gus Grubba
Browse files
CP - Cleanup warnings
parent
e4367ef6
Changes
6
Show whitespace changes
Inline
Side-by-side
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
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