mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Parsing colors is slow
This commit is contained in:
parent
190ee53bfb
commit
e379f94f6d
@ -60,7 +60,7 @@ QgsGeometryValidationDock::QgsGeometryValidationDock( const QString &title, QgsM
|
||||
mFeatureRubberband->setWidth( scaleFactor );
|
||||
mFeatureRubberband->setStrokeColor( QColor( 100, 255, 100, 100 ) );
|
||||
|
||||
mErrorRubberband->setColor( QColor( "#ffee58ff" ) );
|
||||
mErrorRubberband->setColor( QColor( 255, 238, 88, 255 ) );
|
||||
mErrorRubberband->setWidth( scaleFactor );
|
||||
|
||||
mErrorLocationRubberband->setIcon( QgsRubberBand::ICON_X );
|
||||
@ -332,8 +332,8 @@ void QgsGeometryValidationDock::showHighlight( const QModelIndex ¤t )
|
||||
mErrorRubberband->update();
|
||||
} );
|
||||
|
||||
errorAnimation->setStartValue( QColor( "#ffee58ff" ) );
|
||||
errorAnimation->setEndValue( QColor( "#ffee5800" ) );
|
||||
errorAnimation->setStartValue( QColor( 255, 238, 88, 255 ) );
|
||||
errorAnimation->setEndValue( QColor( 255, 238, 88, 0 ) );
|
||||
|
||||
errorAnimation->setDuration( 2000 );
|
||||
errorAnimation->start();
|
||||
|
Loading…
x
Reference in New Issue
Block a user