Use different colors for RGB and YUV

This commit is contained in:
jfmcarreira committed 2014-04-17 17:28:13 +01:00
1 parent 3915ee5d1c
commit bae4ed2de8
1 file changed
+7 -7
+7 -7
View File
@@ -37,16 +37,16 @@ namespace plaYUVer
const QBrush g_eColorPallet[][3] =
{
{
Qt::red, // Channel Red
Qt::green, // Channel Green
Qt::blue, // Channel Blue
},
{
Qt::darkGray, // Luma
Qt::blue, // Cb
Qt::red, // Cr
} };
},
{
Qt::red, // Channel Red
Qt::green, // Channel Green
Qt::blue, // Channel Blue
},};
class HistogramWidgetPrivate
{
@@ -559,7 +559,7 @@ void HistogramWidget::paintEvent( QPaintEvent * )
// so there's no need to write double-buffering code in paintEvent()
// to avoid flicker.
QPainter p1( this );
Int pallet = 1;
Int pallet = d->imageColorSpace;
// Drawing selection or all histogram values.