@@ -67,7 +67,7 @@ void QgsMapToolLabel::createRubberBands( )
6767 mLabelRubberBand ->addPoint ( QgsPoint ( rect.xMaximum (), rect.yMaximum () ) );
6868 mLabelRubberBand ->addPoint ( QgsPoint ( rect.xMaximum (), rect.yMinimum () ) );
6969 mLabelRubberBand ->addPoint ( QgsPoint ( rect.xMinimum (), rect.yMinimum () ) );
70- mLabelRubberBand ->setColor ( Qt::green );
70+ mLabelRubberBand ->setColor ( QColor ( 0 , 255 , 0 , 65 ) );
7171 mLabelRubberBand ->setWidth ( 3 );
7272 mLabelRubberBand ->show ();
7373
@@ -82,7 +82,7 @@ void QgsMapToolLabel::createRubberBands( )
8282 if ( geom )
8383 {
8484 mFeatureRubberBand = new QgsRubberBand ( mCanvas , geom->type () );
85- mFeatureRubberBand ->setColor ( Qt::red );
85+ mFeatureRubberBand ->setColor ( QColor ( 255 , 0 , 0 , 65 ) );
8686 mFeatureRubberBand ->setToGeometry ( geom, vlayer );
8787 mFeatureRubberBand ->show ();
8888 }
@@ -103,7 +103,7 @@ void QgsMapToolLabel::createRubberBands( )
103103
104104 QgsGeometry* pointGeom = QgsGeometry::fromPoint ( fixPoint );
105105 mFixPointRubberBand = new QgsRubberBand ( mCanvas , QGis::Line );
106- mFixPointRubberBand ->setColor ( Qt::blue );
106+ mFixPointRubberBand ->setColor ( QColor ( 0 , 0 , 255 , 65 ) );
107107 mFixPointRubberBand ->setToGeometry ( pointGeom, vlayer );
108108 mFixPointRubberBand ->show ();
109109 delete pointGeom;
0 commit comments