File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ void QgsRasterHistogramWidget::refreshHistogram()
353
353
if ( i == myGrayBand )
354
354
{
355
355
mHistoColors << Qt::darkGray;
356
- cboHistoBand->setItemData ( i - 1 , Qt::darkGray, Qt::ForegroundRole );
356
+ cboHistoBand->setItemData ( i - 1 , QColor ( Qt::darkGray ) , Qt::ForegroundRole );
357
357
}
358
358
else
359
359
{
@@ -366,7 +366,7 @@ void QgsRasterHistogramWidget::refreshHistogram()
366
366
{
367
367
mHistoColors << Qt::black;
368
368
}
369
- cboHistoBand->setItemData ( i - 1 , Qt::black, Qt::ForegroundRole );
369
+ cboHistoBand->setItemData ( i - 1 , QColor ( Qt::black ) , Qt::ForegroundRole );
370
370
}
371
371
}
372
372
}
@@ -399,7 +399,7 @@ void QgsRasterHistogramWidget::refreshHistogram()
399
399
{
400
400
myColor = Qt::black;
401
401
}
402
- cboHistoBand->setItemData ( i - 1 , Qt::black, Qt::ForegroundRole );
402
+ cboHistoBand->setItemData ( i - 1 , QColor ( Qt::black ) , Qt::ForegroundRole );
403
403
}
404
404
if ( i == myRedBand || i == myGreenBand || i == myBlueBand )
405
405
{
You can’t perform that action at this time.
0 commit comments