45
explicit RenderTask(QObject* parent = 0);
46
explicit RenderTask(Model::Page* page, QObject* parent = 0);
49
50
bool isRunning() const;
50
52
bool wasCanceled() const;
53
bool wasCanceledNormally() const;
54
bool wasCanceledForcibly() const;
57
void imageReady(int resolutionX, int resolutionY, qreal devicePixelRatio, qreal scaleFactor, Rotation rotation, bool invertColors, bool prefetch, QImage image);
61
void imageReady(const RenderParam& renderParam,
62
const QRect& rect, bool prefetch,
63
QImage image, QRectF cropRect);
60
void start(Model::Page* page, int resolutionX, int resolutionY, qreal devicePixelRatio, qreal scaleFactor, Rotation rotation, bool invertColors, bool prefetch);
66
void start(const RenderParam& renderParam,
67
const QRect& rect, bool prefetch,
68
bool trimMargins, const QColor& paperColor);
70
void cancel(bool force = false);
64
73
Q_DISABLE_COPY(RenderTask)