Changeset 52868 in vbox for trunk/src/VBox
- Timestamp:
- Sep 26, 2014 12:38:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp
r52794 r52868 31 31 # include <QStateMachine> 32 32 # include <QPainter> 33 # ifdef Q_WS_X11 34 # include <QX11Info> 35 # endif /* Q_WS_X11 */ 33 36 34 37 /* GUI includes: */ … … 39 42 # ifdef Q_WS_MAC 40 43 # include "VBoxUtils-darwin.h" 41 # endif 44 # endif /* Q_WS_MAC */ 42 45 43 46 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ … … 570 573 571 574 /* Left margin: */ 575 #ifdef Q_WS_X11 576 if (QX11Info::isCompositingManagerRunning()) 577 m_spacings << widgetForAction(addWidget(new QWidget)); 578 #else /* !Q_WS_X11 */ 572 579 m_spacings << widgetForAction(addWidget(new QWidget)); 580 #endif /* !Q_WS_X11 */ 573 581 574 582 /* Prepare push-pin: */ … … 622 630 623 631 /* Right margin: */ 632 #ifdef Q_WS_X11 633 if (QX11Info::isCompositingManagerRunning()) 634 m_spacings << widgetForAction(addWidget(new QWidget)); 635 #else /* !Q_WS_X11 */ 624 636 m_spacings << widgetForAction(addWidget(new QWidget)); 637 #endif /* !Q_WS_X11 */ 625 638 626 639 /* Resize to sizehint: */ … … 630 643 void UIMiniToolBar::rebuildShape() 631 644 { 645 #ifdef Q_WS_X11 646 if (!QX11Info::isCompositingManagerRunning()) 647 return; 648 #endif /* Q_WS_X11 */ 649 632 650 /* Rebuild shape: */ 633 651 QPainterPath shape;
Note:
See TracChangeset
for help on using the changeset viewer.