tests/auto/qicon/tst_qicon.cpp
changeset 7 f7bc934e204c
parent 0 1918ee327afb
equal deleted inserted replaced
3:41300fa6a67c 7:f7bc934e204c
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the test suite of the Qt Toolkit.
     7 ** This file is part of the test suite of the Qt Toolkit.
     8 **
     8 **
    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()) {