Skip to content
Permalink
Browse files

use digitizing color for label editing rubber band

  • Loading branch information
3nids committed Jan 27, 2016
1 parent ae3cfd4 commit d80a632bd8a9033bffa17295c7c6bd3d49c232b5
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/app/qgsmaptoollabel.cpp
@@ -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();
}

0 comments on commit d80a632

Please sign in to comment.
You can’t perform that action at this time.