VirtualBox

Changeset 40443 in vbox


Ignore:
Timestamp:
Mar 13, 2012 12:54:10 PM (13 years ago)
Author:
vboxsync
Message:

FE/Qt: Use plastique look 'n feel on Solaris for Qt 4.7.x.

File:
1 edited

Legend:

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

    r39121 r40443  
    385385
    386386#ifdef Q_OS_SOLARIS
    387         /* Solaris have some issue with cleanlooks style which leads to application
    388          * crash in case of using it on Qt4.4 version, lets make the same substitute */
    389         if (VBoxGlobal::qtRTVersionString().startsWith ("4.4") &&
    390             qobject_cast <QCleanlooksStyle*> (QApplication::style()))
    391             QApplication::setStyle (new QPlastiqueStyle);
     387        /* Use plastique look 'n feel for Solaris instead of the default motif (Qt 4.7.x) */
     388        QApplication::setStyle (new QPlastiqueStyle);
    392389#endif
    393390
     
    573570        QApplication a (argc, &argv[0]);
    574571#ifdef Q_OS_SOLARIS
    575         /* Solaris have some issue with cleanlooks style which leads to application
    576          * crash in case of using it on Qt4.4 version, lets make the same substitute */
    577         if (VBoxGlobal::qtRTVersionString().startsWith ("4.4") &&
    578             qobject_cast <QCleanlooksStyle*> (QApplication::style()))
    579             QApplication::setStyle (new QPlastiqueStyle);
     572        /* Use plastique look 'n feel for Solaris instead of the default motif (Qt 4.7.x) */
     573        QApplication::setStyle (new QPlastiqueStyle);
    580574#endif
    581575        QString msgTitle = QApplication::tr ("VirtualBox - Runtime Error");
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