summaryrefslogtreecommitdiffstats
path: root/tests/arthur/lance/widgets.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/arthur/lance/widgets.h')
-rw-r--r--tests/arthur/lance/widgets.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/arthur/lance/widgets.h b/tests/arthur/lance/widgets.h
index 88e0726..f7d3268 100644
--- a/tests/arthur/lance/widgets.h
+++ b/tests/arthur/lance/widgets.h
@@ -236,7 +236,12 @@ public:
}
if (m_render_view.isNull()) {
- m_render_view = T::window()->windowSurface()->grabWidget(this);
+
+ if (T::window()->windowSurface())
+ m_render_view = T::window()->windowSurface()->grabWidget(this);
+ else
+ m_render_view = QPixmap::grabWidget(this);
+
m_render_view.save("renderView.png");
}
}