summaryrefslogtreecommitdiffstats
path: root/Doc/tools
ModeNameSize
-rwxr-xr-xanno-api.py2176logstatsplain
-rwxr-xr-xbuildindex.py11193logstatsplain
-rw-r--r--checkargs.pm4233logstatsplain
-rwxr-xr-xcklatex661logstatsplain
-rwxr-xr-xcmpcsyms4582logstatsplain
-rw-r--r--custlib.py2133logstatsplain
-rwxr-xr-xfindcsyms3662logstatsplain
-rwxr-xr-xfindmodrefs1806logstatsplain
-rwxr-xr-xfindsyms3937logstatsplain
-rwxr-xr-xfix_hack86logstatsplain
-rwxr-xr-xfix_libaux.sed107logstatsplain
-rw-r--r--fixinfo.el441logstatsplain
-rwxr-xr-xgetpagecounts2883logstatsplain
-rwxr-xr-xgetversioninfo1791logstatsplain
-rwxr-xr-xhtml2texi.pl58169logstatsplain
-rwxr-xr-xindfix.py2295logstatsplain
-rw-r--r--keywords.py526logstatsplain
-rwxr-xr-xlistmodules5211logstatsplain
-rw-r--r--listmodules.py3413logstatsplain
-rwxr-xr-xmakesec.sh3438logstatsplain
-rwxr-xr-xmkackshtml1708logstatsplain
-rwxr-xr-xmkhowto23773logstatsplain
-rwxr-xr-xmkinfo1552logstatsplain
-rwxr-xr-xmkmodindex4823logstatsplain
-rwxr-xr-xmkpkglist2345logstatsplain
-rwxr-xr-xmksourcepkg4911logstatsplain
-rwxr-xr-xnode2label.pl1942logstatsplain
-rw-r--r--prechm.py17397logstatsplain
-rwxr-xr-xpush-docs.sh3007logstatsplain
-rw-r--r--py2texi.el32345logstatsplain
-rw-r--r--refcounts.py2305logstatsplain
-rw-r--r--rewrite.py1362logstatsplain
d---------sgmlconv310logstatsplain
-rw-r--r--support.py6827logstatsplain
-rwxr-xr-xtoc2bkm.py4520logstatsplain
-rw-r--r--undoc_symbols.py2527logstatsplain
-rwxr-xr-xupdate-docs.sh746logstatsplain
-rwxr-xr-xwhichlibs85logstatsplain
: QCustomRasterPaintDevice(w)
{
- pengine = new SvgalibPaintEngine;
+ pengine = new SvgalibPaintEngine(this);
}
SvgalibPaintDevice::~SvgalibPaintDevice()
diff --git a/examples/qws/svgalib/svgalibpaintengine.cpp b/examples/qws/svgalib/svgalibpaintengine.cpp
index 8713863..59740da 100644
--- a/examples/qws/svgalib/svgalibpaintengine.cpp
+++ b/examples/qws/svgalib/svgalibpaintengine.cpp
@@ -45,7 +45,8 @@
#include <vga.h>
#include <vgagl.h>
-SvgalibPaintEngine::SvgalibPaintEngine()
+SvgalibPaintEngine::SvgalibPaintEngine(QPaintDevice *device)
+ : QRasterPaintEngine(device)
{
}
@@ -61,7 +62,7 @@ bool SvgalibPaintEngine::begin(QPaintDevice *dev)
simplePen = true;
brush = Qt::NoBrush;
simpleBrush = true;
- matrix = QMatrix();
+ matrix = QTransform();
simpleMatrix = true;
setClip(QRect(0, 0, device->width(), device->height()));
opaque = true;
@@ -81,54 +82,52 @@ bool SvgalibPaintEngine::end()
//! [1]
//! [2]
-void SvgalibPaintEngine::updateState(const QPaintEngineState &state)
+void SvgalibPaintEngine::updateState()
{
- QPaintEngine::DirtyFlags flags = state.state();
+ QRasterPaintEngineState *s = state();
- if (flags & DirtyTransform) {
- matrix = state.matrix();
+ if (s->dirty & DirtyTransform) {
+ matrix = s->matrix;
simpleMatrix = (matrix.m12() == 0 && matrix.m21() == 0);
}
- if (flags & DirtyPen) {
- pen = state.pen();
+ if (s->dirty & DirtyPen) {
+ pen = s->pen;
simplePen = (pen.width() == 0 || pen.widthF() <= 1)
&& (pen.style() == Qt::NoPen || pen.style() == Qt::SolidLine)
&& (pen.color().alpha() == 255);
}
- if (flags & DirtyBrush) {
- brush = state.brush();
+ if (s->dirty & DirtyBrush) {
+ brush = s->brush;
simpleBrush = (brush.style() == Qt::SolidPattern
|| brush.style() == Qt::NoBrush)
&& (brush.color().alpha() == 255);
}
- if (flags & DirtyClipRegion)
- setClip(state.clipRegion());
+ if (s->dirty & DirtyClipRegion)
+ setClip(s->clipRegion);
- if (flags & DirtyClipEnabled) {
- clipEnabled = state.isClipEnabled();
+ if (s->dirty & DirtyClipEnabled) {
+ clipEnabled = s->isClipEnabled();
updateClip();
}
- if (flags & DirtyClipPath) {
+ if (s->dirty & DirtyClipPath) {
setClip(QRegion());
simpleClip = false;
}
- if (flags & DirtyCompositionMode) {
- const QPainter::CompositionMode m = state.compositionMode();
+ if (s->dirty & DirtyCompositionMode) {
+ const QPainter::CompositionMode m = s->composition_mode;
sourceOver = (m == QPainter::CompositionMode_SourceOver);
}
- if (flags & DirtyOpacity)
- opaque = (state.opacity() == 256);
+ if (s->dirty & DirtyOpacity)
+ opaque = (s->opacity == 256);
- if (flags & DirtyHints)
- aliased = !(state.renderHints() & QPainter::Antialiasing);
-
- QRasterPaintEngine::updateState(state);
+ if (s->dirty & DirtyHints)
+ aliased = !(s->flags.antialiased);
}
//! [2]
diff --git a/examples/qws/svgalib/svgalibpaintengine.h b/examples/qws/svgalib/svgalibpaintengine.h
index f43d201..27b77ee 100644
--- a/examples/qws/svgalib/svgalibpaintengine.h
+++ b/examples/qws/svgalib/svgalibpaintengine.h
@@ -48,12 +48,12 @@
class SvgalibPaintEngine : public QRasterPaintEngine
{
public:
- SvgalibPaintEngine();
+ SvgalibPaintEngine(QPaintDevice *device);
~SvgalibPaintEngine();
bool begin(QPaintDevice *device);
bool end();
- void updateState(const QPaintEngineState &state);
+ void updateState();
void drawRects(const QRect *rects, int rectCount);
private:
@@ -64,7 +64,7 @@ private:
bool simplePen;
QBrush brush;
bool simpleBrush;
- QMatrix matrix;
+ QTransform matrix;
bool simpleMatrix;
QRegion clip;
bool clipEnabled;
diff --git a/src/corelib/codecs/codecs.pri b/src/corelib/codecs/codecs.pri