Changeset 52381 in vbox
- Timestamp:
- Aug 14, 2014 1:02:35 PM (10 years ago)
- 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 736 736 setAttribute(Qt::WA_NoSystemBackground); 737 737 # 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. */ 742 741 ::darwinSetShowsWindowTransparent(this, true); 743 742 # elif defined(Q_WS_WIN) 744 743 /* Using Qt API to enable translucent background: 745 * - Under Win host Qt conflicts with 3D stuff (black seamless regions).746 744 * - 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): */ 749 747 setAttribute(Qt::WA_TranslucentBackground); 750 748 # endif /* Q_WS_WIN */ -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp
r52370 r52381 36 36 #include "UIIconPool.h" 37 37 #include "VBoxGlobal.h" 38 #ifdef Q_WS_MAC 39 # include "VBoxUtils-darwin.h" 40 #endif /* Q_WS_MAC */ 38 41 39 42 #ifndef Q_WS_X11 … … 198 201 { 199 202 #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 */ 202 218 #endif /* VBOX_RUNTIME_UI_WITH_SHAPED_MINI_TOOLBAR */ 203 219
Note:
See TracChangeset
for help on using the changeset viewer.