File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -579,9 +579,18 @@ void QgsIdentifyMenu::handleMenuHover()
579
579
QgsVectorLayer* vl = qobject_cast<QgsVectorLayer*>( result.mLayer );
580
580
if ( !vl )
581
581
continue ;
582
+
582
583
QgsHighlight *hl = new QgsHighlight ( mCanvas , result.mFeature .geometry (), vl );
583
- hl->setColor ( QColor ( 255 , 0 , 0 ) );
584
- hl->setWidth ( 2 );
584
+ QSettings settings;
585
+ QColor color = QColor ( settings.value ( " /Map/highlight/color" , QGis::DEFAULT_HIGHLIGHT_COLOR.name () ).toString () );
586
+ int alpha = settings.value ( " /Map/highlight/colorAlpha" , QGis::DEFAULT_HIGHLIGHT_COLOR.alpha () ).toInt ();
587
+ double buffer = settings.value ( " /Map/highlight/buffer" , QGis::DEFAULT_HIGHLIGHT_BUFFER_MM ).toDouble ();
588
+ double minWidth = settings.value ( " /Map/highlight/minWidth" , QGis::DEFAULT_HIGHLIGHT_MIN_WIDTH_MM ).toDouble ();
589
+ hl->setColor ( color ); // sets also fill with default alpha
590
+ color.setAlpha ( alpha );
591
+ hl->setFillColor ( color ); // sets fill with alpha
592
+ hl->setBuffer ( buffer );
593
+ hl->setMinWidth ( minWidth );
585
594
mRubberBands .append ( hl );
586
595
connect ( vl, SIGNAL ( destroyed () ), this , SLOT ( layerDestroyed () ) );
587
596
}
You can’t perform that action at this time.
0 commit comments