Skip to content
Permalink
Browse files
Merge pull request #1288 from simonsonc/qvariant-qcolor
Use QColor instead of Qt::GlobalColor in item data
  • Loading branch information
etiennesky committed Apr 2, 2014
2 parents 2b3108f + 6ebd9a8 commit bc40ab69c9d6078855d56c877ee672f6abae9ac9
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/gui/raster/qgsrasterhistogramwidget.cpp
@@ -353,7 +353,7 @@ void QgsRasterHistogramWidget::refreshHistogram()
if ( i == myGrayBand )
{
mHistoColors << Qt::darkGray;
cboHistoBand->setItemData( i - 1, Qt::darkGray, Qt::ForegroundRole );
cboHistoBand->setItemData( i - 1, QColor( Qt::darkGray ), Qt::ForegroundRole );
}
else
{
@@ -366,7 +366,7 @@ void QgsRasterHistogramWidget::refreshHistogram()
{
mHistoColors << Qt::black;
}
cboHistoBand->setItemData( i - 1, Qt::black, Qt::ForegroundRole );
cboHistoBand->setItemData( i - 1, QColor( Qt::black ), Qt::ForegroundRole );
}
}
}
@@ -399,7 +399,7 @@ void QgsRasterHistogramWidget::refreshHistogram()
{
myColor = Qt::black;
}
cboHistoBand->setItemData( i - 1, Qt::black, Qt::ForegroundRole );
cboHistoBand->setItemData( i - 1, QColor( Qt::black ), Qt::ForegroundRole );
}
if ( i == myRedBand || i == myGreenBand || i == myBlueBand )
{

0 comments on commit bc40ab6

Please sign in to comment.