LiveMap V0.1 - Tracking position

Initial implementation of #3482
LiveMap is hidden when GPS data is not available
New layout including Live Map and graphical widgets
added to video-layout.xml, zoom can be configured there.
This commit is contained in:
Peter
2020-05-09 16:20:39 -04:00
committed by Ale Martinez
parent 05e89e5c34
commit 984d28abf0
5 changed files with 231 additions and 5 deletions

View File

@@ -150,6 +150,10 @@ bool VideoLayoutParser::startElement( const QString&, const QString&,
{
meterWidget = new ElevationMeterWidget(meterName, containerWidget, source);
}
else if (meterType == QString("LiveMap"))
{
meterWidget = new LiveMapWidget(meterName, containerWidget, source);
}
else
{
qDebug() << QObject::tr("Error creating meter");
@@ -233,6 +237,8 @@ bool VideoLayoutParser::endElement( const QString&, const QString&, const QStrin
meterWidget->m_Angle = buffer.toFloat();
else if (qName == "SubRange")
meterWidget->m_SubRange = buffer.toInt();
else if (qName == "Zoom")
meterWidget->m_Zoom = buffer.toInt();
else if (qName == "Text")
meterWidget->Text = QString(buffer);