[Marble-commits] KDE/kdeedu/marble/src/lib
Bernhard Beschow
bbeschow at cs.tu-berlin.de
Thu Aug 19 09:42:17 CEST 2010
SVN commit 1165383 by beschow:
use more forwarders of MarbleWidget directly
M +3 -4 CurrentLocationWidget.cpp
--- trunk/KDE/kdeedu/marble/src/lib/CurrentLocationWidget.cpp #1165382:1165383
@@ -17,7 +17,6 @@
// Marble
#include "AdjustNavigation.h"
#include "MarbleLocale.h"
-#include "MarbleMap.h"
#include "MarbleModel.h"
#include "MarbleWidget.h"
#include "GeoDataCoordinates.h"
@@ -78,7 +77,7 @@
d->m_widget = widget;
d->m_adjustNavigation = new AdjustNavigation( d->m_widget, this );
- d->m_widget->map()->model()->routingManager()->setAdjustNavigation( d->m_adjustNavigation );
+ d->m_widget->model()->routingManager()->setAdjustNavigation( d->m_adjustNavigation );
PluginManager* pluginManager = d->m_widget->model()->pluginManager();
d->m_positionProviderPlugins = pluginManager->createPositionProviderPlugins();
@@ -208,7 +207,7 @@
{
if ( provider == QObject::tr("Disabled") ) {
m_currentLocationUi.locationLabel->setEnabled( false );
- m_widget->map()->setShowGps( false );
+ m_widget->setShowGps( false );
m_widget->model()->positionTracking()->setPositionProviderPlugin( 0 );
m_currentLocationUi.recenterLabel->setEnabled( false );
m_currentLocationUi.recenterComboBox->setEnabled( false );
@@ -222,7 +221,7 @@
PositionProviderPlugin* instance = plugin->newInstance();
PositionTracking *tracking = m_widget->model()->positionTracking();
tracking->setPositionProviderPlugin( instance );
- m_widget->map()->setShowGps( true );
+ m_widget->setShowGps( true );
m_widget->update();
return;
}
More information about the Marble-commits
mailing list