1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
http://bugs.gentoo.org/314483
http://websvn.kde.org/?view=revision&revision=1061366
http://websvn.kde.org/?view=revision&revision=1061381
--- krita/ui/widgets/kis_curve_widget_p.h
+++ krita/ui/widgets/kis_curve_widget_p.h
@@ -439,7 +439,7 @@
* That is not mandatory but desirable
*/
- p.setPen(QPen::QPen(Qt::gray, 1, Qt::SolidLine));
+ p.setPen(QPen(Qt::gray, 1, Qt::SolidLine));
p.drawLine(div4_round(wWidth), 0, div4_round(wWidth), wHeight);
p.drawLine(div2_round(wWidth), 0, div2_round(wWidth), wHeight);
p.drawLine(div4_round(3*wWidth), 0, div4_round(3*wWidth), wHeight);
--- krita/ui/widgets/kis_curve_widget.cpp
+++ krita/ui/widgets/kis_curve_widget.cpp
@@ -312,11 +312,11 @@
curveY = d->m_points.at(i).y();
if (i == d->m_grab_point_index) {
- p.setPen(QPen::QPen(Qt::red, 3, Qt::SolidLine));
+ p.setPen(QPen(Qt::red, 3, Qt::SolidLine));
p.drawEllipse(QRectF(curveX * wWidth - 2,
wHeight - 2 - curveY * wHeight, 4, 4));
} else {
- p.setPen(QPen::QPen(Qt::red, 1, Qt::SolidLine));
+ p.setPen(QPen(Qt::red, 1, Qt::SolidLine));
p.drawEllipse(QRectF(curveX * wWidth - 3,
wHeight - 3 - curveY * wHeight, 6, 6));
}
--- krita/plugins/filters/colorsfilters/kis_perchannel_filter.cpp
+++ krita/plugins/filters/colorsfilters/kis_perchannel_filter.cpp
@@ -123,7 +123,7 @@
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);
@@ -138,7 +138,7 @@
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));
if(m_histogram)
{
--- krita/plugins/filters/colorsfilters/kis_brightness_contrast_filter.cpp
+++ krita/plugins/filters/colorsfilters/kis_brightness_contrast_filter.cpp
@@ -249,7 +249,7 @@
// 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 @@
// 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 @@
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();
--- krita/plugins/filters/levelfilter/kis_level_filter.cpp
+++ krita/plugins/filters/levelfilter/kis_level_filter.cpp
@@ -178,7 +178,7 @@
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();
|