Fix compiling

This commit is contained in:
Matthias Kuhn 2015-06-01 16:45:51 +02:00
parent 55db2abc5c
commit 239dc71d43
2 changed files with 10 additions and 3 deletions

View File

@ -63,6 +63,15 @@ bool QgsAbstractGeometryV2::isMeasure() const
return ( mWkbType >= 2001 && mWkbType <= 3012 );
}
void QgsAbstractGeometryV2::clip( const QgsRectangle& rect )
{
// TODO
// - Implementation
// - API doc in header
// Don't insert Q_UNUSED, so we have a warning that reminds us of this TODO
}
void QgsAbstractGeometryV2::setZMTypeFromSubGeometry( const QgsAbstractGeometryV2* subgeom, QgsWKBTypes::Type baseGeomType )
{
if ( !subgeom )

View File

@ -223,9 +223,7 @@ class CORE_EXPORT QgsAbstractGeometryV2
*/
virtual void transform( const QTransform& t ) = 0;
#if 0
virtual void clip( const QgsRectangle& rect ) { Q_UNUSED( rect ); } //todo
#endif
virtual void clip( const QgsRectangle& rect ); //todo
/** Draws the geometry using the specified QPainter.
* @param p destination QPainter