Skip to content

Commit d80a632

Browse files
committed
use digitizing color for label editing rubber band
1 parent ae3cfd4 commit d80a632

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/app/qgsmaptoollabel.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,13 @@ void QgsMapToolLabel::createRubberBands()
8686
const QgsGeometry* geom = f.constGeometry();
8787
if ( geom )
8888
{
89+
QSettings settings;
90+
int r = settings.value( "/qgis/digitizing/line_color_red", 255 ).toInt();
91+
int g = settings.value( "/qgis/digitizing/line_color_green", 0 ).toInt();
92+
int b = settings.value( "/qgis/digitizing/line_color_blue", 0 ).toInt();
93+
int a = settings.value( "/qgis/digitizing/line_color_alpha", 200 ).toInt();
8994
mFeatureRubberBand = new QgsRubberBand( mCanvas, geom->type() );
90-
mFeatureRubberBand->setColor( QColor( 255, 0, 0, 65 ) );
95+
mFeatureRubberBand->setColor( QColor( r, g, b, a ) );
9196
mFeatureRubberBand->setToGeometry( geom, vlayer );
9297
mFeatureRubberBand->show();
9398
}

0 commit comments

Comments
 (0)