tests/auto/qicon/tst_qicon.cpp
changeset 19 fcece45ef507
parent 18 2f34d5167611
child 30 5dc02b23752f
--- a/tests/auto/qicon/tst_qicon.cpp	Fri Apr 16 15:50:13 2010 +0300
+++ b/tests/auto/qicon/tst_qicon.cpp	Mon May 03 13:17:34 2010 +0300
@@ -86,8 +86,14 @@
 
 private:
     QString oldCurrentDir;
+
+    const static QIcon staticIcon;
 };
 
+// Creating an icon statically should not cause a crash. 
+// But we do not officially support this. See QTBUG-8666
+const QIcon tst_QIcon::staticIcon = QIcon::fromTheme("edit-find");
+
 void tst_QIcon::init()
 {
     QString srcdir(QLatin1String(SRCDIR));