mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
GCS/map: Minor change to map gadget.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@403 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
7927a22fe0
commit
5404273e7c
@ -30,7 +30,9 @@
|
||||
|
||||
MapGadgetConfiguration::MapGadgetConfiguration(QString classId, const QByteArray &state, QObject *parent) :
|
||||
IUAVGadgetConfiguration(classId, parent),
|
||||
m_defaultZoom(10)
|
||||
m_defaultZoom(10),
|
||||
m_defaultLatitude(0),
|
||||
m_defaultLongitude(0)
|
||||
{
|
||||
if (state.count() > 0) {
|
||||
QDataStream stream(state);
|
||||
|
@ -53,6 +53,6 @@ IUAVGadgetConfiguration *MapGadgetFactory::createConfiguration(const QByteArray
|
||||
|
||||
IOptionsPage *MapGadgetFactory::createOptionsPage(IUAVGadgetConfiguration *config)
|
||||
{
|
||||
return new MapGadgetOptionsPage(config);
|
||||
return new MapGadgetOptionsPage(qobject_cast<MapGadgetConfiguration*>(config));
|
||||
}
|
||||
|
||||
|
@ -34,9 +34,9 @@
|
||||
#include <QtGui/QVBoxLayout>
|
||||
|
||||
|
||||
MapGadgetOptionsPage::MapGadgetOptionsPage(IUAVGadgetConfiguration *config, QObject *parent) :
|
||||
MapGadgetOptionsPage::MapGadgetOptionsPage(MapGadgetConfiguration *config, QObject *parent) :
|
||||
IOptionsPage(parent),
|
||||
m_config(qobject_cast<MapGadgetConfiguration*>(config))
|
||||
m_config(config)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -43,7 +43,7 @@ class MapGadgetOptionsPage : public IOptionsPage
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit MapGadgetOptionsPage(IUAVGadgetConfiguration *config, QObject *parent = 0);
|
||||
explicit MapGadgetOptionsPage(MapGadgetConfiguration *config, QObject *parent = 0);
|
||||
QString id() const { return ""; }
|
||||
QString trName() const { return ""; }
|
||||
QString category() const { return ""; }
|
||||
|
Loading…
Reference in New Issue
Block a user