summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-03-04 10:26:45 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-03-04 10:26:45 (GMT)
commit352f9e629666b6a1743fafc42c16bb51a6ad3df9 (patch)
treec88526dd233bc33136b17d49f8af60946649f2a3 /tests/auto
parentfb80e2646874919f9ae8c459b21c190ff89e839b (diff)
parent7727a4355876607a1a022ff54e2570dae883f79c (diff)
downloadQt-352f9e629666b6a1743fafc42c16bb51a6ad3df9.zip
Qt-352f9e629666b6a1743fafc42c16bb51a6ad3df9.tar.gz
Qt-352f9e629666b6a1743fafc42c16bb51a6ad3df9.tar.bz2
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.6-integration
* '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-1: Do not crash when loading themed icons statically Doc: document what the timeout of -1 means in D-Bus Avoid QString reallocation in QTextEngine
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qicon/tst_qicon.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qicon/tst_qicon.cpp b/tests/auto/qicon/tst_qicon.cpp
index f861e40..fae9cc0 100644
--- a/tests/auto/qicon/tst_qicon.cpp
+++ b/tests/auto/qicon/tst_qicon.cpp
@@ -86,8 +86,14 @@ private slots:
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));