summaryrefslogtreecommitdiffstats
path: root/tests/arthur
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-10-20 11:40:05 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-10-20 11:40:05 (GMT)
commitb7ba4ccf9017281c48b47be5988f2fb46dee2c1f (patch)
tree864617dc4cb93077e8b6e900f7793667f0fbf2ee /tests/arthur
parent006c994f56824180c6d702b8b4aeba87815a080f (diff)
downloadQt-b7ba4ccf9017281c48b47be5988f2fb46dee2c1f.zip
Qt-b7ba4ccf9017281c48b47be5988f2fb46dee2c1f.tar.gz
Qt-b7ba4ccf9017281c48b47be5988f2fb46dee2c1f.tar.bz2
Fixed crash in Lance under Mac OS X without graphics system
Diffstat (limited to 'tests/arthur')
-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 ea1482f..7c17bc5 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");
}
}