Skip to content

Commit 380d02e

Browse files
committedOct 15, 2018
Try to show fixed icons
1 parent b0d8d8e commit 380d02e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎src/app/qgsgeometryvalidationmodel.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,15 @@ QVariant QgsGeometryValidationModel::data( const QModelIndex &index, int role )
5252

5353
switch ( role )
5454
{
55+
case Qt::DecorationRole:
56+
if ( topologyError->status() == QgsGeometryCheckError::StatusFixed )
57+
return QgsApplication::getThemeIcon( QStringLiteral( "/algorithms/mAlgorithmCheckGeometry.svg" ) );
58+
else
59+
return QgsApplication::getThemeIcon( QStringLiteral( "/algorithms/mAlgorithmLineIntersection.svg" ) );
60+
5561
case Qt::DisplayRole:
5662
FALLTHROUGH;
63+
5764
case DetailsRole:
5865
{
5966
const QgsFeatureId fid = topologyError->featureId();

0 commit comments

Comments
 (0)
Please sign in to comment.