summaryrefslogtreecommitdiffstats
path: root/qt-ui/globe.cpp
blob: 770e51b0265af0916886439b89dc274e01bca497 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "globe.h"
#include <marble/AbstractFloatItem.h>

using namespace Marble;

GlobeGPS::GlobeGPS(QWidget* parent) : MarbleWidget(parent)
{
	setMapThemeId("earth/bluemarble/bluemarble.dgml");
	setProjection( Marble::Spherical );

	// Enable the cloud cover and enable the country borders
	setShowClouds( true );
	setShowBorders( true );

	// Hide the FloatItems: Compass and StatusBar
	setShowOverviewMap(false);
	setShowScaleBar(false);

	Q_FOREACH( AbstractFloatItem * floatItem, floatItems() ){
		if ( floatItem && floatItem->nameId() == "compass" ) {
			floatItem->setPosition( QPoint( 10, 10 ) );
			floatItem->setContentSize( QSize( 50, 50 ) );
		}
	}
}