Skip to content
Permalink
Browse files
More properties for QgsRubberBand
  • Loading branch information
m-kuhn committed Sep 30, 2018
1 parent 3287604 commit ba186242f94c11eb8b330d787b542082fe451c08
Showing with 8 additions and 2 deletions.
  1. +4 −2 src/gui/qgsrubberband.cpp
  2. +4 −0 src/gui/qgsrubberband.h
@@ -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 )
{
}

@@ -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

0 comments on commit ba18624

Please sign in to comment.