VirtualBox

Ignore:
Timestamp:
Jun 3, 2008 7:59:24 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
31554
Message:

FE/Qt4-OSX: No icons in the menu of a mac application.

File:
1 edited

Legend:

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

    r8915 r9339  
    181181#endif
    182182
    183 #ifndef RT_OS_DARWIN
     183#ifndef Q_WS_MAC
    184184        /* some gui qt-styles has it's own different color for buttons
    185185         * causing tool-buttons and dropped menu displayed in
    186186         * different annoying color, so fixing palette button's color */
     187#warning "port me: any longer required?"
    187188        QPalette pal = a.palette();
    188189        pal.setColor (QPalette::Disabled, QColorGroup::Button,
     
    193194                      pal.color (QPalette::Inactive, QColorGroup::Background));
    194195        a.setPalette (pal);
    195 #endif
     196#else /* !Q_WS_MAC */
     197        /* No icons in the menu of a mac application. */
     198        a.setAttribute (Qt::AA_DontShowIconsInMenus, true);
     199#endif /* Q_WS_MAC */
    196200
    197201#ifdef Q_WS_X11
Note: See TracChangeset for help on using the changeset viewer.

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