Skip to content

Commit

Permalink
use digitizing color for label editing rubber band
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jan 27, 2016
1 parent ae3cfd4 commit d80a632
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/qgsmaptoollabel.cpp
Expand Up @@ -86,8 +86,13 @@ void QgsMapToolLabel::createRubberBands()
const QgsGeometry* geom = f.constGeometry();
if ( geom )
{
QSettings settings;
int r = settings.value( "/qgis/digitizing/line_color_red", 255 ).toInt();
int g = settings.value( "/qgis/digitizing/line_color_green", 0 ).toInt();
int b = settings.value( "/qgis/digitizing/line_color_blue", 0 ).toInt();
int a = settings.value( "/qgis/digitizing/line_color_alpha", 200 ).toInt();
mFeatureRubberBand = new QgsRubberBand( mCanvas, geom->type() );
mFeatureRubberBand->setColor( QColor( 255, 0, 0, 65 ) );
mFeatureRubberBand->setColor( QColor( r, g, b, a ) );
mFeatureRubberBand->setToGeometry( geom, vlayer );
mFeatureRubberBand->show();
}
Expand Down

0 comments on commit d80a632

Please sign in to comment.