VirtualBox

Changeset 52381 in vbox


Ignore:
Timestamp:
Aug 14, 2014 1:02:35 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: Mac OS X: Runtime UI: Remove unnecessary mini-toolbar shadow.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

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

    r52349 r52381  
    736736    setAttribute(Qt::WA_NoSystemBackground);
    737737# if defined(Q_WS_MAC)
    738     /* Using native API to enable translucent background for the Mac host.
    739      * - We also want to disable window-shadows which is possible
    740      *   using Qt::WA_MacNoShadow only since Qt 4.8,
    741      *   while minimum supported version is 4.7.1 for now: */
     738    /* Using native API to enable translucent background:
     739     * - Under Mac host Qt doesn't allows to disable window-shadows
     740     *   until version 4.8, but minimum supported version is 4.7.1. */
    742741    ::darwinSetShowsWindowTransparent(this, true);
    743742# elif defined(Q_WS_WIN)
    744743    /* Using Qt API to enable translucent background:
    745      * - Under Win host Qt conflicts with 3D stuff (black seamless regions).
    746744     * - Under Mac host Qt doesn't allows to disable window-shadows
    747      *   until version 4.8, but minimum supported version is 4.7.1 for now.
    748      * - Under x11 host Qt has it broken with KDE 4.9 (black background): */
     745     *   until version 4.8, but minimum supported version is 4.7.1.
     746     * - Under x11 host Qt has broken XComposite support (black background): */
    749747    setAttribute(Qt::WA_TranslucentBackground);
    750748# endif /* Q_WS_WIN */
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp

    r52370 r52381  
    3636#include "UIIconPool.h"
    3737#include "VBoxGlobal.h"
     38#ifdef Q_WS_MAC
     39# include "VBoxUtils-darwin.h"
     40#endif /* Q_WS_MAC */
    3841
    3942#ifndef Q_WS_X11
     
    198201{
    199202#ifdef VBOX_RUNTIME_UI_WITH_SHAPED_MINI_TOOLBAR
    200     /* Using Qt API to enable translucent background: */
    201     setAttribute(Qt::WA_TranslucentBackground, true);
     203    /* Make sure we have no background
     204     * until the first one paint-event: */
     205    setAttribute(Qt::WA_NoSystemBackground);
     206# if defined(Q_WS_MAC)
     207    /* Using native API to enable translucent background:
     208     * - Under Mac host Qt doesn't allows to disable window-shadows
     209     *   until version 4.8, but minimum supported version is 4.7.1. */
     210    ::darwinSetShowsWindowTransparent(this, true);
     211# elif defined(Q_WS_WIN)
     212    /* Using Qt API to enable translucent background:
     213     * - Under Mac host Qt doesn't allows to disable window-shadows
     214     *   until version 4.8, but minimum supported version is 4.7.1.
     215     * - Under x11 host Qt has broken XComposite support (black background): */
     216    setAttribute(Qt::WA_TranslucentBackground);
     217# endif /* Q_WS_WIN */
    202218#endif /* VBOX_RUNTIME_UI_WITH_SHAPED_MINI_TOOLBAR */
    203219
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