VirtualBox

Ignore:
Timestamp:
May 19, 2016 1:54:00 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: Qt5 migration (part 113): Solaris: Removing old styles not supported by Qt5.

File:
1 edited

Legend:

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

    r60865 r61047  
    5454#ifdef VBOX_WS_X11
    5555# ifdef Q_OS_SOLARIS
    56 #  include <QPlastiqueStyle>
     56#  if QT_VERSION < 0x050000
     57#   include <QPlastiqueStyle>
     58#  endif /* QT_VERSION < 0x050000 */
    5759# endif /* Q_OS_SOLARIS */
    5860# ifndef Q_OS_SOLARIS
     
    473475
    474476# ifdef Q_OS_SOLARIS
     477#  if QT_VERSION < 0x050000
    475478        /* Use plastique look&feel for Solaris instead of the default motif (Qt 4.7.x): */
    476479        QApplication::setStyle(new QPlastiqueStyle);
     480#  else /* QT_VERSION >= 0x050000 */
     481        a.setStyle("fusion");
     482#  endif /* QT_VERSION >= 0x050000 */
    477483# endif /* Q_OS_SOLARIS */
    478484
     
    599605
    600606#ifdef Q_OS_SOLARIS
     607# if QT_VERSION < 0x050000
    601608        /* Use plastique look&feel for Solaris instead of the default motif (Qt 4.7.x): */
    602609        QApplication::setStyle(new QPlastiqueStyle);
     610#else /* QT_VERSION >= 0x050000 */
     611        a.setStyle("fusion");
     612# endif /* QT_VERSION >= 0x050000 */
    603613#endif /* Q_OS_SOLARIS */
    604614
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