Changeset 103539 in vbox
- Timestamp:
- Feb 22, 2024 6:27:15 PM (9 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDefs.h
r103538 r103539 47 47 { 48 48 ActivateActionEventType = QEvent::User + 101, 49 #ifdef VBOX_WS_MAC50 ShowWindowEventType,51 #endif52 49 }; 53 50 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r103538 r103539 680 680 { 681 681 for (int i=0; i < machineWindows().size(); ++i) 682 { 683 UIMachineWindow *pMachineWindow = machineWindows().at(i); 684 /* Dunno what Qt thinks a window that has minimized to the dock 685 * should be - it is not hidden, neither is it minimized. OTOH it is 686 * marked shown and visible, but not activated. This latter isn't of 687 * much help though, since at this point nothing is marked activated. 688 * I might have overlooked something, but I'm buggered what if I know 689 * what. So, I'll just always show & activate the stupid window to 690 * make it get out of the dock when the user wishes to show a VM. */ 691 pMachineWindow->raise(); 692 pMachineWindow->activateWindow(); 693 } 682 UIDesktopWidgetWatchdog::restoreWidget(machineWindows().at(i)); 694 683 } 695 684 #endif /* VBOX_WS_MAC */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r103538 r103539 1759 1759 } 1760 1760 1761 bool UIMachineView::event(QEvent *pEvent)1762 {1763 switch ((UIEventType)pEvent->type())1764 {1765 #ifdef VBOX_WS_MAC1766 /* Event posted OnShowWindow: */1767 case ShowWindowEventType:1768 {1769 /* Dunno what Qt3 thinks a window that has minimized to the dock should be - it is not hidden,1770 * neither is it minimized. OTOH it is marked shown and visible, but not activated.1771 * This latter isn't of much help though, since at this point nothing is marked activated.1772 * I might have overlooked something, but I'm buggered what if I know what. So, I'll just always1773 * show & activate the stupid window to make it get out of the dock when the user wishes to show a VM: */1774 window()->show();1775 window()->activateWindow();1776 return true;1777 }1778 #endif /* VBOX_WS_MAC */1779 1780 default:1781 break;1782 }1783 1784 return QAbstractScrollArea::event(pEvent);1785 }1786 1787 1761 bool UIMachineView::eventFilter(QObject *pWatched, QEvent *pEvent) 1788 1762 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h
r100064 r103539 314 314 315 315 /* Cross-platforms event processors: */ 316 bool event(QEvent *pEvent);317 316 bool eventFilter(QObject *pWatched, QEvent *pEvent); 318 317 void resizeEvent(QResizeEvent *pEvent);
Note:
See TracChangeset
for help on using the changeset viewer.