tests/auto/qicon/tst_qicon.cpp
changeset 19 fcece45ef507
parent 18 2f34d5167611
child 30 5dc02b23752f
equal deleted inserted replaced
18:2f34d5167611 19:fcece45ef507
    84     void task223279_inconsistentAddFile();
    84     void task223279_inconsistentAddFile();
    85     void task239461_custom_iconengine_crash();
    85     void task239461_custom_iconengine_crash();
    86 
    86 
    87 private:
    87 private:
    88     QString oldCurrentDir;
    88     QString oldCurrentDir;
       
    89 
       
    90     const static QIcon staticIcon;
    89 };
    91 };
       
    92 
       
    93 // Creating an icon statically should not cause a crash. 
       
    94 // But we do not officially support this. See QTBUG-8666
       
    95 const QIcon tst_QIcon::staticIcon = QIcon::fromTheme("edit-find");
    90 
    96 
    91 void tst_QIcon::init()
    97 void tst_QIcon::init()
    92 {
    98 {
    93     QString srcdir(QLatin1String(SRCDIR));
    99     QString srcdir(QLatin1String(SRCDIR));
    94     if (!srcdir.isEmpty()) {
   100     if (!srcdir.isEmpty()) {