VirtualBox

Changeset 17959 in vbox


Ignore:
Timestamp:
Mar 16, 2009 5:07:43 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: Just a try to work/around Solaris + Qt4.4 cleanlooks crash.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/main.cpp

    r17862 r17959  
    282282            qobject_cast <QCleanlooksStyle*> (QApplication::style()))
    283283            QApplication::setStyle (new QPlastiqueStyle);
     284
     285#ifdef Q_OS_SOLARIS
     286        /* Solaris have some issue with cleanlooks style which leads to application
     287         * crash in case of using it on Qt4.4 version, lets make the same substitute */
     288        if (QString (qVersion()).startsWith ("4.4") &&
     289            qobject_cast <QCleanlooksStyle*> (QApplication::style()))
     290            QApplication::setStyle (new QPlastiqueStyle);
     291#endif
    284292
    285293#ifdef Q_WS_X11
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette