mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-03-13 10:37:45 +01:00
23 lines
377 B
C++
23 lines
377 B
C++
|
#include <QGeoPositionInfoSource>
|
||
|
#include "settings.h"
|
||
|
|
||
|
static QString defaultPlugin()
|
||
|
{
|
||
|
QString source;
|
||
|
|
||
|
QGeoPositionInfoSource *ps = QGeoPositionInfoSource::createDefaultSource(0);
|
||
|
if (!ps)
|
||
|
return source;
|
||
|
|
||
|
source = ps->sourceName();
|
||
|
delete ps;
|
||
|
|
||
|
return source;
|
||
|
}
|
||
|
|
||
|
const QString &Settings::positionPlugin()
|
||
|
{
|
||
|
static QString plugin(defaultPlugin());
|
||
|
return plugin;
|
||
|
}
|