diff options
Diffstat (limited to 'examples/corelib/threads/mandelbrot/renderthread.h')
-rw-r--r-- | examples/corelib/threads/mandelbrot/renderthread.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/corelib/threads/mandelbrot/renderthread.h b/examples/corelib/threads/mandelbrot/renderthread.h index 6174e0ed3d..7bbd9ae056 100644 --- a/examples/corelib/threads/mandelbrot/renderthread.h +++ b/examples/corelib/threads/mandelbrot/renderthread.h @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2016 The Qt Company Ltd. +** Copyright (C) 2021 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the examples of the Qt Toolkit. @@ -72,6 +72,10 @@ public: void render(double centerX, double centerY, double scaleFactor, QSize resultSize, double devicePixelRatio); + static void setNumPasses(int n) { numPasses = n; } + + static QString infoKey() { return QStringLiteral("info"); } + signals: void renderedImage(const QImage &image, double scaleFactor); @@ -88,6 +92,7 @@ private: double scaleFactor; double devicePixelRatio; QSize resultSize; + static int numPasses; bool restart = false; bool abort = false; |