diff options
author | Shane Kearns <shane.kearns@sosco.com> | 2009-11-19 16:52:51 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@sosco.com> | 2009-11-19 16:52:51 (GMT) |
commit | 5f5e1b7aa5d03203346e00751b8bf15883944b25 (patch) | |
tree | 3249e917ea4ab58d38d0f78bad2db8d912c31942 /tests | |
parent | 1f6aa19209a7d22bb15bf0a0afb2d62200c0d3fa (diff) | |
download | Qt-5f5e1b7aa5d03203346e00751b8bf15883944b25.zip Qt-5f5e1b7aa5d03203346e00751b8bf15883944b25.tar.gz Qt-5f5e1b7aa5d03203346e00751b8bf15883944b25.tar.bz2 |
Fix crash when using splash screen, or QPixmap::copy()
Missing virtual function now implemented
Task-number: QTBUG-5977
Reviewed-by: axis
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qpixmap/tst_qpixmap.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/qpixmap/tst_qpixmap.cpp b/tests/auto/qpixmap/tst_qpixmap.cpp index d7f042e..0effd01 100644 --- a/tests/auto/qpixmap/tst_qpixmap.cpp +++ b/tests/auto/qpixmap/tst_qpixmap.cpp @@ -47,6 +47,7 @@ #include <qmatrix.h> #include <qdesktopwidget.h> #include <qpaintengine.h> +#include <qsplashscreen.h> #include <private/qpixmapdata_p.h> @@ -169,6 +170,7 @@ private slots: void loadFromDataNullValues(); void preserveDepth(); + void splash_crash(); }; static bool lenientCompare(const QPixmap &actual, const QPixmap &expected) @@ -1421,6 +1423,17 @@ void tst_QPixmap::fromImage_crash() delete img; } +//This is testing QPixmapData::createCompatiblePixmapData - see QTBUG-5977 +void tst_QPixmap::splash_crash() +{ + QPixmap pix; + pix = QPixmap(":/images/designer.png"); + QSplashScreen splash(pix); + splash.show(); + QCoreApplication::processEvents(); + splash.close(); +} + void tst_QPixmap::fromData() { unsigned char bits[] = { 0xaa, 0x55 }; |