mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
use digitizing color for label editing rubber band
This commit is contained in:
parent
ae3cfd4f85
commit
d80a632bd8
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user