mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user