#include <QTest>
#include <qpainter.h>
#include <qdrawutil.h>
#include <qwidget.h>
#include <qguiapplication.h>
#include <qfontmetrics.h>
#include <qbitmap.h>
#include <qimage.h>
#include <qthread.h>
#include <limits.h>
#include <math.h>
#include <qpaintengine.h>
#include <qpixmap.h>
#include <qrandom.h>
#include <private/qdrawhelper_p.h>
#include <qpainterpath.h>
#include <qqueue.h>
#include <qscreen.h>
#include <qgraphicsview.h>
#include <qgraphicsscene.h>
#include <qgraphicsproxywidget.h>
#include <qfontdatabase.h>
#include <fenv.h>
#include "tst_qpainter.moc"
Go to the source code of this file.
|
QRgb | qt_compose_alpha (QRgb source, QRgb dest) |
|
int | countPixels (const QImage &img, const QRgb &color) |
|
template<typename T > |
void | testClipping (QImage &img) |
|
void | porterDuff_warningChecker (QtMsgType type, const QMessageLogContext &, const QString &msg) |
|
void | fpe_rasterizeLine_task232012 () |
|
void | fpe_pixmapTransform () |
|
void | fpe_zeroLengthLines () |
|
void | fpe_divByZero () |
|
void | fpe_steepSlopes () |
|
void | fpe_radialGradients () |
|
qreal | randf () |
|
QPointF | randInRect (const QRectF &rect) |
|
bool | verifyOutlineFillConsistency (const QImage &img, QRgb outside, QRgb inside, QRgb outline) |
|
bool | verifyImage (const QImage &img, int x, int y, int w, int h, uint background) |
|
int | diffColor (quint32 ap, quint32 bp) |
|
bool | testCompositionMode (int src, int dst, int expected, QPainter::CompositionMode op, qreal opacity=1.0) |
|
◆ FOR_EACH_NEIGHBOR_4
#define FOR_EACH_NEIGHBOR_4 for (int dx = -1; dx <= 1; ++dx) for (int dy = -1; dy <= 1; ++dy) if ((dx == 0) != (dy == 0)) |
◆ FOR_EACH_NEIGHBOR_8
#define FOR_EACH_NEIGHBOR_8 for (int dx = -1; dx <= 1; ++dx) for (int dy = -1; dy <= 1; ++dy) if (dx != 0 || dy != 0) |
◆ FPE_TEST
◆ CosmeticStrokerPaint
◆ countPixels()
◆ diffColor()
◆ fpe_divByZero()
◆ fpe_pixmapTransform()
void fpe_pixmapTransform |
( |
| ) |
|
◆ fpe_radialGradients()
void fpe_radialGradients |
( |
| ) |
|
◆ fpe_rasterizeLine_task232012()
void fpe_rasterizeLine_task232012 |
( |
| ) |
|
◆ fpe_steepSlopes()
◆ fpe_zeroLengthLines()
void fpe_zeroLengthLines |
( |
| ) |
|
◆ porterDuff_warningChecker()
◆ qt_compose_alpha()
◆ randf()
◆ randInRect()
◆ testClipping()
◆ testCompositionMode()
◆ verifyImage()
bool verifyImage |
( |
const QImage & |
img, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h, |
|
|
uint |
background |
|
) |
| |
◆ verifyOutlineFillConsistency()