summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-07-23 06:48:31 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-07-23 10:07:01 (GMT)
commita306e47ceb7b48ca48a1a3b28d0caade6994a81c (patch)
tree5b7250ed790a685abc8c46a13f56f6a837dca1bb
parentbaab654c79faceedddd89298d22cae5d8c1d5419 (diff)
Enable bookmark support (load and show bookmarks)
-rw-r--r--src/lib/marble/declarative/MarbleQuickItem.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/marble/declarative/MarbleQuickItem.cpp b/src/lib/marble/declarative/MarbleQuickItem.cpp
index 581a480..5545e27 100644
--- a/src/lib/marble/declarative/MarbleQuickItem.cpp
+++ b/src/lib/marble/declarative/MarbleQuickItem.cpp
@@ -37,6 +37,7 @@
#include <routing/RoutingManager.h>
#include <routing/RoutingModel.h>
#include <routing/Route.h>
+#include <BookmarkManager.h>
namespace Marble
{
@@ -895,6 +896,8 @@ namespace Marble
}
settings.endGroup();
d->m_model.routingManager()->readSettings();
+ d->m_model.bookmarkManager()->loadFile( "bookmarks/bookmarks.kml" );
+ d->m_model.bookmarkManager()->setShowBookmarks(true);
}
void MarbleQuickItem::writeSettings()