summaryrefslogtreecommitdiffstats
path: root/kolourpaint/patches
diff options
context:
space:
mode:
Diffstat (limited to 'kolourpaint/patches')
-rw-r--r--kolourpaint/patches/checkerboard-faster-render.diff2
-rw-r--r--kolourpaint/patches/doc_resize_no_flicker.diff12
2 files changed, 7 insertions, 7 deletions
diff --git a/kolourpaint/patches/checkerboard-faster-render.diff b/kolourpaint/patches/checkerboard-faster-render.diff
index ed75fb0a..824106ca 100644
--- a/kolourpaint/patches/checkerboard-faster-render.diff
+++ b/kolourpaint/patches/checkerboard-faster-render.diff
@@ -44,7 +44,7 @@ QPainter::fillRect(). QPainter::drawPixmap() seems much faster. For
+ col = TQColor (224, 224, 224);
+ }
+ else
-+ col = Qt::white;
++ col = TQt::white;
+
+ painter.fillRect (x * cellSize, y * cellSize,
+ cellSize, cellSize,
diff --git a/kolourpaint/patches/doc_resize_no_flicker.diff b/kolourpaint/patches/doc_resize_no_flicker.diff
index ce3a74bd..2254286f 100644
--- a/kolourpaint/patches/doc_resize_no_flicker.diff
+++ b/kolourpaint/patches/doc_resize_no_flicker.diff
@@ -144,7 +144,7 @@ diff -u -p -r1.7 kpviewscrollablecontainer.cpp
+
+ if (!redrawWidgetRegion.isEmpty ())
{
- // TODO: should be "!widget->testWFlags (Qt::WRepaintNoErase)"
+ // TODO: should be "!widget->testWFlags (TQt::WRepaintNoErase)"
// but for some reason, doesn't work for viewport().
const bool erase = !dynamic_cast <kpView *> (widget);
- widget->repaint (redrawWidgetRect, erase);
@@ -202,25 +202,25 @@ diff -u -p -r1.7 kpviewscrollablecontainer.cpp
+
QPainter p (viewport (), true/*unclipped*/);
- p.setRasterOp (Qt::NotROP);
+ p.setRasterOp (TQt::NotROP);
- const QRect rightRect = rightResizeLineRect ();
- if (rightRect.isValid ())
-- p.fillRect (mapViewToViewport (rightRect), Qt::white);
+- p.fillRect (mapViewToViewport (rightRect), TQt::white);
-
- const QRect bottomRect = bottomResizeLineRect ();
- if (bottomRect.isValid ())
-- p.fillRect (mapViewToViewport (bottomRect), Qt::white);
+- p.fillRect (mapViewToViewport (bottomRect), TQt::white);
-
- const QRect bottomRightRect = bottomRightResizeLineRect ();
- if (bottomRightRect.isValid ())
-- p.fillRect (mapViewToViewport (bottomRightRect), Qt::white);
+- p.fillRect (mapViewToViewport (bottomRightRect), TQt::white);
+ const QMemArray <QRect> rects = mapViewToViewport (viewRegion).rects ();
+ for (QMemArray <QRect>::ConstIterator it = rects.begin ();
+ it != rects.end ();
+ it++)
+ {
-+ p.fillRect (*it, Qt::white);
++ p.fillRect (*it, TQt::white);
+ }
p.end ();