Changeset 31319 in vbox
- Timestamp:
- Aug 2, 2010 4:41:47 PM (14 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 5 edited
-
VBoxCloseVMDlg.cpp (modified) (2 diffs)
-
VBoxTakeSnapshotDlg.cpp (modified) (1 diff)
-
extensions/QIMessageBox.cpp (modified) (1 diff)
-
globals/VBoxGlobal.cpp (modified) (2 diffs)
-
globals/VBoxGlobal.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxCloseVMDlg.cpp
r29794 r31319 25 25 #include "UIMachineWindowNormal.h" 26 26 27 #ifdef Q_WS_MAC 28 # include "VBoxGlobal.h" 29 #endif /* Q_WS_MAC */ 30 27 31 /* Qt includes */ 28 32 #include <QPushButton> … … 35 39 /* No sheets in another mode than normal for now. Firstly it looks ugly and 36 40 * secondly in some cases it is broken. */ 37 UIMachineWindowNormal *pWnd = qobject_cast<UIMachineWindowNormal*>(aParent); 38 if (pWnd) 41 if (vboxGlobal().isSheetWindowsAllowed(aParent)) 39 42 setWindowFlags (Qt::Sheet); 40 43 #endif /* Q_WS_MAC */ -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxTakeSnapshotDlg.cpp
r29794 r31319 41 41 /* No sheets in another mode than normal for now. Firstly it looks ugly and 42 42 * secondly in some cases it is broken. */ 43 if ( qobject_cast<UIMachineWindowNormal*>(pParent)43 if ( vboxGlobal().isSheetWindowsAllowed(pParent) 44 44 || qobject_cast<VBoxSnapshotsWgt*>(pParent)) 45 setWindowFlags (Qt::Sheet);45 setWindowFlags(Qt::Sheet); 46 46 #endif /* Q_WS_MAC */ 47 47 -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIMessageBox.cpp
r30192 r31319 66 66 /* No sheets in another mode than normal for now. Firstly it looks ugly and 67 67 * secondly in some cases it is broken. */ 68 if (!( qobject_cast<UIMachineWindowFullscreen*>(aParent) 69 || qobject_cast<UIMachineWindowSeamless*>(aParent))) 70 setWindowFlags (Qt::Sheet); 68 if (vboxGlobal().isSheetWindowsAllowed(aParent)) 69 setWindowFlags(Qt::Sheet); 71 70 #endif /* Q_WS_MAC */ 72 71 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r31019 r31319 40 40 # include "VBoxFBOverlay.h" 41 41 #endif /* VBOX_WITH_VIDEOHWACCEL */ 42 43 #ifdef Q_WS_MAC 44 # include "UIMachineWindowFullscreen.h" 45 # include "UIMachineWindowSeamless.h" 46 #endif /* Q_WS_MAC */ 42 47 43 48 /* Qt includes */ … … 4128 4133 4129 4134 #endif 4135 4136 #ifdef Q_WS_MAC 4137 bool VBoxGlobal::isSheetWindowsAllowed(QWidget *pParent) const 4138 { 4139 if (!( qobject_cast<UIMachineWindowFullscreen*>(pParent) 4140 || qobject_cast<UIMachineWindowSeamless*>(pParent))) 4141 return true; 4142 } 4143 #endif /* Q_WS_MAC */ 4130 4144 4131 4145 // Public slots -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r31008 r31319 639 639 #endif 640 640 641 #ifdef Q_WS_MAC 642 bool isSheetWindowsAllowed(QWidget *pParent) const; 643 #endif /* Q_WS_MAC */ 644 641 645 signals: 642 646
Note:
See TracChangeset
for help on using the changeset viewer.

