Skip to content

Commit aa0b94a

Browse files
committedJul 22, 2016
fix build
1 parent 2fbb617 commit aa0b94a

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed
 

‎src/plugins/globe/featuresource/qgsglobefeaturesource.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ osgEarth::Features::Geometry::Type QgsGlobeFeatureSource::getGeometryType() cons
9595
{
9696
switch ( mLayer->geometryType() )
9797
{
98-
case QGis::Point:
98+
case Qgis::Point:
9999
return osgEarth::Features::Geometry::TYPE_POINTSET;
100100

101-
case QGis::Line:
101+
case Qgis::Line:
102102
return osgEarth::Features::Geometry::TYPE_LINESTRING;
103103

104-
case QGis::Polygon:
104+
case Qgis::Polygon:
105105
return osgEarth::Features::Geometry::TYPE_POLYGON;
106106

107107
default:

‎src/plugins/globe/featuresource/qgsglobefeatureutils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class QgsGlobeFeatureUtils
101101
return pointSet;
102102
}
103103

104-
case QGis::WKBMultiPoint:
104+
case Qgis::WKBMultiPoint:
105105
{
106106
osgEarth::Features::PointSet* pointSet = new osgEarth::Features::PointSet();
107107
QgsMultiPointV2* multiPoint = static_cast<QgsMultiPointV2*>( geom.geometry() );

‎src/plugins/globe/qgsglobefeatureidentify.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <osgEarth/Registry>
2626

2727
QgsGlobeFeatureIdentifyCallback::QgsGlobeFeatureIdentifyCallback( QgsMapCanvas* mapCanvas )
28-
: mCanvas( mapCanvas ), mRubberBand( new QgsRubberBand( mapCanvas, QGis::Polygon ) )
28+
: mCanvas( mapCanvas ), mRubberBand( new QgsRubberBand( mapCanvas, Qgis::Polygon ) )
2929
{
3030
QColor color( Qt::green );
3131
color.setAlpha( 190 );
@@ -66,7 +66,7 @@ void QgsGlobeFeatureIdentifyCallback::onHit( osgEarth::ObjectID id )
6666
if ( feat.isValid() )
6767
mRubberBand->setToGeometry( feat.geometry(), lyr );
6868
else
69-
mRubberBand->reset( QGis::Polygon );
69+
mRubberBand->reset( Qgis::Polygon );
7070
}
7171
}
7272
else
@@ -82,5 +82,5 @@ void QgsGlobeFeatureIdentifyCallback::onMiss( const EventArgs &/*args*/ )
8282
void QgsGlobeFeatureIdentifyCallback::onMiss()
8383
#endif
8484
{
85-
mRubberBand->reset( QGis::Polygon );
85+
mRubberBand->reset( Qgis::Polygon );
8686
}

‎src/plugins/globe/qgsglobefrustumhighlight.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ QgsGlobeFrustumHighlightCallback::QgsGlobeFrustumHighlightCallback( osg::View* v
2626
: osg::NodeCallback()
2727
, mView( view )
2828
, mTerrain( terrain )
29-
, mRubberBand( new QgsRubberBand( mapCanvas, QGis::Polygon ) )
29+
, mRubberBand( new QgsRubberBand( mapCanvas, Qgis::Polygon ) )
3030
, mSrs( osgEarth::SpatialReference::create( mapCanvas->mapRenderer()->destinationCrs().toWkt().toStdString() ) )
3131
{
3232
mRubberBand->setColor( color );
@@ -49,7 +49,7 @@ void QgsGlobeFrustumHighlightCallback::operator()( osg::Node*, osg::NodeVisitor*
4949
mTerrain->getWorldCoordsUnderMouse( mView, width - 1, height - 1, corners[2] );
5050
mTerrain->getWorldCoordsUnderMouse( mView, width - 1, 0, corners[3] );
5151

52-
mRubberBand->reset( QGis::Polygon );
52+
mRubberBand->reset( Qgis::Polygon );
5353
for ( int i = 0; i < 4; i++ )
5454
{
5555
osg::Vec3d localCoords;

‎src/plugins/globe/qgsglobetilesource.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ QgsMapSettings QgsGlobeTileImage::createSettings( int dpi , const QStringList &l
9999
{
100100
QgsMapSettings settings;
101101
settings.setBackgroundColor( QColor( Qt::transparent ) );
102-
settings.setDestinationCrs( QgsCRSCache::instance()->crsByAuthId( GEO_EPSG_CRS_AUTHID ) );
102+
settings.setDestinationCrs( QgsCrsCache::instance()->crsByAuthId( GEO_EPSG_CRS_AUTHID ) );
103103
settings.setCrsTransformEnabled( true );
104104
settings.setExtent( mTileExtent );
105105
settings.setLayers( layerSet );
106106
settings.setFlag( QgsMapSettings::DrawEditingInfo, false );
107107
settings.setFlag( QgsMapSettings::DrawLabeling, false );
108108
settings.setFlag( QgsMapSettings::DrawSelection, false );
109-
settings.setMapUnits( QGis::Degrees );
109+
settings.setMapUnits( Qgis::Degrees );
110110
settings.setOutputSize( QSize( mTileSize, mTileSize ) );
111111
settings.setOutputImageFormat( QImage::Format_ARGB32_Premultiplied );
112112
settings.setOutputDpi( dpi );

‎src/plugins/globe/qgsglobevectorlayerproperties.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
class QgsGlobeVectorLayerConfig;
2727
class QgsMapLayer;
28+
class QgsVectorLayer;
2829
class QDomDocument;
2930
class QDomElement;
3031
class QListWidgetItem;

0 commit comments

Comments
 (0)
Please sign in to comment.