gcc 4.5.0 build fixes

svn path=/trunk/koffice/; revision=1061381
parent 7567cb6a
......@@ -249,7 +249,7 @@ KisBrightnessContrastConfigWidget::KisBrightnessContrastConfigWidget(QWidget * p
// Create the horizontal gradient label
QPixmap hgradientpix(256, 1);
QPainter hgp(&hgradientpix);
hgp.setPen(QPen::QPen(QColor(0, 0, 0), 1, Qt::SolidLine));
hgp.setPen(QPen(QColor(0, 0, 0), 1, Qt::SolidLine));
for (i = 0; i < 256; ++i) {
hgp.setPen(QColor(i, i, i));
hgp.drawPoint(i, 0);
......@@ -259,7 +259,7 @@ KisBrightnessContrastConfigWidget::KisBrightnessContrastConfigWidget(QWidget * p
// Create the vertical gradient label
QPixmap vgradientpix(1, 256);
QPainter vgp(&vgradientpix);
vgp.setPen(QPen::QPen(QColor(0, 0, 0), 1, Qt::SolidLine));
vgp.setPen(QPen(QColor(0, 0, 0), 1, Qt::SolidLine));
for (i = 0; i < 256; ++i) {
vgp.setPen(QColor(i, i, i));
vgp.drawPoint(0, 255 - i);
......@@ -271,7 +271,7 @@ KisBrightnessContrastConfigWidget::KisBrightnessContrastConfigWidget(QWidget * p
QPixmap pix(256, height);
pix.fill();
QPainter p(&pix);
p.setPen(QPen::QPen(Qt::gray, 1, Qt::SolidLine));
p.setPen(QPen(Qt::gray, 1, Qt::SolidLine));
double highest = (double)histogram.calculations().getHighest();
qint32 bins = histogram.producer()->numberOfBins();
......
......@@ -121,7 +121,7 @@ inline QPixmap KisPerChannelConfigWidget::createGradient(Qt::Orientation orient
QPixmap gradientpix(width, height);
QPainter p(&gradientpix);
p.setPen(QPen::QPen(QColor(0, 0, 0), 1, Qt::SolidLine));
p.setPen(QPen(QColor(0, 0, 0), 1, Qt::SolidLine));
for (; *i < 256; (*i)++, col += inc) {
p.setPen(QColor(col, col, col));
p.drawPoint(x, y);
......@@ -136,7 +136,7 @@ inline QPixmap KisPerChannelConfigWidget::getHistogram()
QPixmap pix(256, height);
pix.fill();
QPainter p(&pix);
p.setPen(QPen::QPen(Qt::gray, 1, Qt::SolidLine));
p.setPen(QPen(Qt::gray, 1, Qt::SolidLine));
m_histogram->setChannel(m_activeCh);
......
......@@ -176,7 +176,7 @@ void KisLevelConfigWidget::slotDrawHistogram(bool logarithmic)
pix.fill();
QPainter p(&pix);
p.setPen(QPen::QPen(Qt::gray, 1, Qt::SolidLine));
p.setPen(QPen(Qt::gray, 1, Qt::SolidLine));
double highest = (double)histogram->calculations().getHighest();
qint32 bins = histogram->producer()->numberOfBins();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment