mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-21 11:54:15 +01:00
Merged in filnet/librepilot/LP-561_fix_gcs_gadget_clone (pull request #482)
LP-561 fix gcs gadget clone Approved-by: Lalanne Laurent <f5soh@free.fr> Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
This commit is contained in:
commit
0f186cad43
@ -82,6 +82,9 @@ PfdQmlGadgetConfiguration::PfdQmlGadgetConfiguration(QString classId, QSettings
|
|||||||
PfdQmlGadgetConfiguration::PfdQmlGadgetConfiguration(const PfdQmlGadgetConfiguration &obj) :
|
PfdQmlGadgetConfiguration::PfdQmlGadgetConfiguration(const PfdQmlGadgetConfiguration &obj) :
|
||||||
IUAVGadgetConfiguration(obj.classId(), obj.parent())
|
IUAVGadgetConfiguration(obj.classId(), obj.parent())
|
||||||
{
|
{
|
||||||
|
m_speedMap = obj.m_speedMap;
|
||||||
|
m_altitudeMap = obj.m_altitudeMap;
|
||||||
|
|
||||||
m_qmlFile = obj.m_qmlFile;
|
m_qmlFile = obj.m_qmlFile;
|
||||||
|
|
||||||
m_speedFactor = obj.m_speedFactor;
|
m_speedFactor = obj.m_speedFactor;
|
||||||
|
@ -75,7 +75,7 @@ ScopeGadgetConfiguration::ScopeGadgetConfiguration(const ScopeGadgetConfiguratio
|
|||||||
m_mathFunctionType = obj.m_mathFunctionType;
|
m_mathFunctionType = obj.m_mathFunctionType;
|
||||||
m_refreshInterval = obj.m_refreshInterval;
|
m_refreshInterval = obj.m_refreshInterval;
|
||||||
|
|
||||||
int plotCurveCount = m_plotCurveConfigs.size();
|
int plotCurveCount = obj.m_plotCurveConfigs.size();
|
||||||
for (int i = 0; i < plotCurveCount; i++) {
|
for (int i = 0; i < plotCurveCount; i++) {
|
||||||
PlotCurveConfiguration *currentPlotCurveConf = obj.m_plotCurveConfigs.at(i);
|
PlotCurveConfiguration *currentPlotCurveConf = obj.m_plotCurveConfigs.at(i);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user