diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2016-07-14 12:43:46 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2016-07-15 09:30:31 +0000 |
commit | c2414e16aba2ad499a49d3661a2961795c9a9dc9 (patch) | |
tree | 08c8d0a06bc4c9bb218f45739daf3b48540cd2d0 /src/quick/scenegraph/adaptations/software/qsgsoftwarerenderer.cpp | |
parent | 12de7bbc1ee2959f4e31a345b4573242d34474cf (diff) |
Fix rendercontrol grabs with the software backend
Calling grabWindow recurses (since that is implemented via
QQuickRenderControl::grab...) so it's not an option. Instead,
call directly in the software renderer implementation.
Fix also the size of the offscreen QQuickWindow when using QQuickWidget
in combination with the software backend.
Change-Id: I857a2cc0aebbbaa5d52d809aeaec37c15b0787b9
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/quick/scenegraph/adaptations/software/qsgsoftwarerenderer.cpp')
-rw-r--r-- | src/quick/scenegraph/adaptations/software/qsgsoftwarerenderer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderer.cpp b/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderer.cpp index 7bf06f8081..257009472e 100644 --- a/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderer.cpp +++ b/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderer.cpp @@ -69,6 +69,11 @@ void QSGSoftwareRenderer::setCurrentPaintDevice(QPaintDevice *device) m_backingStore = nullptr; } +QPaintDevice *QSGSoftwareRenderer::currentPaintDevice() const +{ + return m_paintDevice; +} + void QSGSoftwareRenderer::setBackingStore(QBackingStore *backingStore) { m_backingStore = backingStore; |