1
0
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:
ephy 2010-03-28 09:49:07 +00:00 committed by ephy
parent 7927a22fe0
commit 5404273e7c
4 changed files with 7 additions and 5 deletions

View File

@ -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);

View File

@ -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));
}

View File

@ -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)
{
}

View File

@ -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 ""; }