summaryrefslogtreecommitdiffstats
path: root/digikam/libs/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'digikam/libs/widgets')
-rw-r--r--digikam/libs/widgets/common/curveswidget.cpp8
-rw-r--r--digikam/libs/widgets/common/histogramwidget.cpp10
-rw-r--r--digikam/libs/widgets/imageplugins/imageguidewidget.cpp10
-rw-r--r--digikam/libs/widgets/imageplugins/imagepaniconwidget.cpp2
4 files changed, 15 insertions, 15 deletions
diff --git a/digikam/libs/widgets/common/curveswidget.cpp b/digikam/libs/widgets/common/curveswidget.cpp
index d050778..8ac7bdc 100644
--- a/digikam/libs/widgets/common/curveswidget.cpp
+++ b/digikam/libs/widgets/common/curveswidget.cpp
@@ -312,7 +312,7 @@ void CurvesWidget::paintEvent(TQPaintEvent*)
int asize = 24;
TQPixmap anim(asize, asize);
TQPainter p2;
- p2.begin(TQT_TQPAINTDEVICE(&anim), this);
+ p2.begin(&anim, this);
p2.fillRect(0, 0, asize, asize, palette().active().background());
p2.translate(asize/2, asize/2);
@@ -330,7 +330,7 @@ void CurvesWidget::paintEvent(TQPaintEvent*)
TQPixmap pm(size());
TQPainter p1;
- p1.begin(TQT_TQPAINTDEVICE(&pm), this);
+ p1.begin(&pm, this);
p1.fillRect(0, 0, width(), height(), palette().active().background());
p1.setPen(TQPen(palette().active().foreground(), 1, TQt::SolidLine));
p1.drawRect(0, 0, width(), height());
@@ -353,7 +353,7 @@ void CurvesWidget::paintEvent(TQPaintEvent*)
{
TQPixmap pm(size());
TQPainter p1;
- p1.begin(TQT_TQPAINTDEVICE(&pm), this);
+ p1.begin(&pm, this);
p1.fillRect(0, 0, width(), height(), palette().active().background());
p1.setPen(TQPen(palette().active().foreground(), 1, TQt::SolidLine));
p1.drawRect(0, 0, width(), height());
@@ -418,7 +418,7 @@ void CurvesWidget::paintEvent(TQPaintEvent*)
TQPixmap pm(size());
TQPainter p1;
- p1.begin(TQT_TQPAINTDEVICE(&pm), this);
+ p1.begin(&pm, this);
int curvePrevVal = 0;
diff --git a/digikam/libs/widgets/common/histogramwidget.cpp b/digikam/libs/widgets/common/histogramwidget.cpp
index 44b52c7..114e788 100644
--- a/digikam/libs/widgets/common/histogramwidget.cpp
+++ b/digikam/libs/widgets/common/histogramwidget.cpp
@@ -383,7 +383,7 @@ void HistogramWidget::paintEvent(TQPaintEvent*)
{
TQPixmap pm(size());
TQPainter p1;
- p1.begin(TQT_TQPAINTDEVICE(&pm), TQT_TQOBJECT(this));
+ p1.begin(&pm, TQT_TQOBJECT(this));
p1.fillRect(0, 0, size().width(), size().height(), palette().disabled().background());
p1.setPen(TQPen(palette().active().foreground(), 1, TQt::SolidLine));
p1.drawRect(0, 0, width(), height());
@@ -405,7 +405,7 @@ void HistogramWidget::paintEvent(TQPaintEvent*)
int asize = 24;
TQPixmap anim(asize, asize);
TQPainter p2;
- p2.begin(TQT_TQPAINTDEVICE(&anim), TQT_TQOBJECT(this));
+ p2.begin(&anim, TQT_TQOBJECT(this));
p2.fillRect(0, 0, asize, asize, palette().active().background());
p2.translate(asize/2, asize/2);
@@ -423,7 +423,7 @@ void HistogramWidget::paintEvent(TQPaintEvent*)
TQPixmap pm(size());
TQPainter p1;
- p1.begin(TQT_TQPAINTDEVICE(&pm), TQT_TQOBJECT(this));
+ p1.begin(&pm, TQT_TQOBJECT(this));
p1.fillRect(0, 0, width(), height(), palette().active().background());
p1.setPen(TQPen(palette().active().foreground(), 1, TQt::SolidLine));
p1.drawRect(0, 0, width(), height());
@@ -447,7 +447,7 @@ void HistogramWidget::paintEvent(TQPaintEvent*)
{
TQPixmap pm(size());
TQPainter p1;
- p1.begin(TQT_TQPAINTDEVICE(&pm), TQT_TQOBJECT(this));
+ p1.begin(&pm, TQT_TQOBJECT(this));
p1.fillRect(0, 0, width(), height(), palette().active().background());
p1.setPen(TQPen(palette().active().foreground(), 1, TQt::SolidLine));
p1.drawRect(0, 0, width(), height());
@@ -524,7 +524,7 @@ void HistogramWidget::paintEvent(TQPaintEvent*)
TQPixmap pm(size());
TQPainter p1;
- p1.begin(TQT_TQPAINTDEVICE(&pm), TQT_TQOBJECT(this));
+ p1.begin(&pm, TQT_TQOBJECT(this));
p1.fillRect(0, 0, width(), height(), palette().active().background());
// Drawing selection or all histogram values.
diff --git a/digikam/libs/widgets/imageplugins/imageguidewidget.cpp b/digikam/libs/widgets/imageplugins/imageguidewidget.cpp
index 43ce104..4ed7f25 100644
--- a/digikam/libs/widgets/imageplugins/imageguidewidget.cpp
+++ b/digikam/libs/widgets/imageplugins/imageguidewidget.cpp
@@ -253,7 +253,7 @@ void ImageGuideWidget::updatePixmap()
else if (d->renderingPreviewMode == PreviewTargetImage || d->renderingPreviewMode == NoPreviewMode ||
(d->renderingPreviewMode == PreviewToggleOnMouseOver && d->onMouseMovePreviewToggled == true ))
{
- d->iface->paint(TQT_TQPAINTDEVICE(d->pixmap), d->rect.x(), d->rect.y(),
+ d->iface->paint(d->pixmap, d->rect.x(), d->rect.y(),
d->rect.width(), d->rect.height(),
d->underExposureIndicator, d->overExposureIndicator);
@@ -278,7 +278,7 @@ void ImageGuideWidget::updatePixmap()
p.drawPixmap(d->rect, d->iface->convertToPixmap(d->preview));
// Drawing the target image under the original.
- d->iface->paint(TQT_TQPAINTDEVICE(d->pixmap),
+ d->iface->paint(d->pixmap,
d->rect.x()+d->rect.width()/2,
d->rect.y(),
d->rect.width()/2,
@@ -289,7 +289,7 @@ void ImageGuideWidget::updatePixmap()
else
{
// Drawing the target image.
- d->iface->paint(TQT_TQPAINTDEVICE(d->pixmap),
+ d->iface->paint(d->pixmap,
d->rect.x(),
d->rect.y(),
d->rect.width(),
@@ -344,7 +344,7 @@ void ImageGuideWidget::updatePixmap()
p.drawPixmap(d->rect, d->iface->convertToPixmap(d->preview));
// Drawing the target image under the original.
- d->iface->paint(TQT_TQPAINTDEVICE(d->pixmap),
+ d->iface->paint(d->pixmap,
d->rect.x(),
d->rect.y()+d->rect.height()/2,
d->rect.width(),
@@ -355,7 +355,7 @@ void ImageGuideWidget::updatePixmap()
else
{
// Drawing the target image.
- d->iface->paint(TQT_TQPAINTDEVICE(d->pixmap),
+ d->iface->paint(d->pixmap,
d->rect.x(),
d->rect.y(),
d->rect.width(),
diff --git a/digikam/libs/widgets/imageplugins/imagepaniconwidget.cpp b/digikam/libs/widgets/imageplugins/imagepaniconwidget.cpp
index 8fbeb17..3856422 100644
--- a/digikam/libs/widgets/imageplugins/imagepaniconwidget.cpp
+++ b/digikam/libs/widgets/imageplugins/imagepaniconwidget.cpp
@@ -104,7 +104,7 @@ void ImagePanIconWidget::updatePixmap()
{
// Drawing background and image.
m_pixmap->fill(colorGroup().background());
- d->iface->paint(TQT_TQPAINTDEVICE(m_pixmap), m_rect.x(), m_rect.y(), m_rect.width(), m_rect.height());
+ d->iface->paint(m_pixmap, m_rect.x(), m_rect.y(), m_rect.width(), m_rect.height());
TQPainter p(m_pixmap);