mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-06 00:05:02 -05:00
More properties for QgsRubberBand
This commit is contained in:
parent
328760437c
commit
ba186242f9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user