[Marble-commits] KDE/kdeedu/marble/src/lib/routing
Dennis Nienhüser
earthwings at gentoo.org
Tue Aug 24 11:57:55 CEST 2010
SVN commit 1167303 by nienhueser:
Do not handle offline mode internally, but forward it to the runner manager.
M +3 -6 RoutingInputWidget.cpp
--- trunk/KDE/kdeedu/marble/src/lib/routing/RoutingInputWidget.cpp #1167302:1167303
@@ -54,8 +54,6 @@
QTimer m_nominatimTimer;
- bool m_workOffline;
-
QVector<QIcon> m_progressAnimation;
int m_currentFrame;
@@ -70,8 +68,7 @@
RoutingInputWidgetPrivate::RoutingInputWidgetPrivate( RouteSkeleton *skeleton, int index, PluginManager* manager, QWidget *parent ) :
m_lineEdit( 0 ), m_runnerManager( new MarbleRunnerManager( manager, parent ) ),
m_placemarkModel( 0 ), m_route( skeleton ), m_index( index ),
- m_manager( new QNetworkAccessManager( parent ) ), m_workOffline( false ),
- m_currentFrame( 0 )
+ m_manager( new QNetworkAccessManager( parent ) ), m_currentFrame( 0 )
{
m_stateButton = new QPushButton( parent );
m_stateButton->setToolTip( QObject::tr( "Center Map here" ) );
@@ -160,7 +157,7 @@
void RoutingInputWidget::reverseGeocoding()
{
- if ( d->m_workOffline || !hasTargetPosition() ) {
+ if ( !hasTargetPosition() ) {
return;
}
@@ -291,7 +288,7 @@
void RoutingInputWidget::setWorkOffline( bool offline )
{
- d->m_workOffline = offline;
+ d->m_runnerManager->setWorkOffline( offline );
}
void RoutingInputWidget::clear()
More information about the Marble-commits
mailing list