[Marble-commits] KDE/kdeedu/marble/src
Dennis Nienhüser
earthwings at gentoo.org
Wed Dec 22 14:50:07 CET 2010
SVN commit 1208606 by nienhueser:
Make openstreetmap the default theme on Maemo.
M +7 -0 ControlView.cpp
--- trunk/KDE/kdeedu/marble/src/ControlView.cpp #1208605:1208606
@@ -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