[Marble-commits] branches/KDE/4.6/kdeedu/marble/src
Dennis Nienhüser
earthwings at gentoo.org
Thu Dec 23 16:39:30 CET 2010
SVN commit 1208872 by nienhueser:
Make openstreetmap the default theme on Maemo.
Backport of commit 1208606.
M +7 -0 ControlView.cpp
--- branches/KDE/4.6/kdeedu/marble/src/ControlView.cpp #1208871:1208872
@@ -154,9 +154,16 @@
QString ControlView::defaultMapThemeId() const
{
QStringList fallBackThemes;
+ bool const smallScreen = MarbleGlobal::getInstance()->profiles() & MarbleGlobal::SmallScreen;
+ if ( smallScreen ) {
+ fallBackThemes << "earth/openstreetmap/openstreetmap.dgml";
fallBackThemes << "earth/srtm/srtm.dgml";
fallBackThemes << "earth/bluemarble/bluemarble.dgml";
+ } else {
+ fallBackThemes << "earth/srtm/srtm.dgml";
+ fallBackThemes << "earth/bluemarble/bluemarble.dgml";
fallBackThemes << "earth/openstreetmap/openstreetmap.dgml";
+ }
QStringList installedThemes;
QList<GeoSceneDocument const*> themes = m_mapThemeManager->mapThemes();
More information about the Marble-commits
mailing list