More properties for QgsRubberBand

This commit is contained in:
Matthias Kuhn 2018-09-30 09:45:06 +02:00
parent 328760437c
commit ba186242f9
No known key found for this signature in database
GPG Key ID: 7A7F1A1C90C3E6A7
2 changed files with 8 additions and 2 deletions

View File

@ -23,7 +23,8 @@
#include <QPainter>
QgsRubberBand::QgsRubberBand( QgsMapCanvas *mapCanvas, QgsWkbTypes::GeometryType geometryType )
: QgsMapCanvasItem( mapCanvas )
: QObject( nullptr )
, QgsMapCanvasItem( mapCanvas )
, mGeometryType( geometryType )
{
reset( geometryType );
@ -37,7 +38,8 @@ QgsRubberBand::QgsRubberBand( QgsMapCanvas *mapCanvas, QgsWkbTypes::GeometryType
}
QgsRubberBand::QgsRubberBand()
: QgsMapCanvasItem( nullptr )
: QObject( nullptr )
, QgsMapCanvasItem( nullptr )
{
}

View File

@ -43,6 +43,10 @@ class GUI_EXPORT QgsRubberBand : public QObject, public QgsMapCanvasItem
public:
Q_PROPERTY( QColor fillColor READ fillColor WRITE setFillColor )
Q_PROPERTY( QColor strokeColor READ strokeColor WRITE setStrokeColor )
Q_PROPERTY( int iconSize READ iconSize WRITE setIconSize )
Q_PROPERTY( QColor secondaryStrokeColor READ secondaryStrokeColor WRITE setSecondaryStrokeColor )
Q_PROPERTY( int width READ width WRITE setWidth )
//! Icons
enum IconType