Changeset 1350 in vbox
- Timestamp:
- Mar 9, 2007 12:10:57 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMListBox.cpp
r1121 r1350 33 33 34 34 #include <qfileinfo.h> 35 36 #if defined (Q_WS_MAC) 37 # include <Carbon/Carbon.h> 38 #endif 35 39 36 40 … … 117 121 return (WId) ~0; 118 122 119 #else 123 #elif defined (Q_WS_MAC) 124 125 /** @todo Figure out how to get access to another windows of another process... 126 * Or at least check that it's not a VBoxVRDP process. */ 127 NOREF (aPid); 128 return (WId) 0; 129 130 #else 120 131 121 132 return (WId) ~0; … … 544 555 return false; 545 556 557 #elif defined (Q_WS_MAC) 558 559 ProcessSerialNumber psn; 560 OSStatus rc = ::GetProcessForPID (mPid, &psn); 561 if (!rc) 562 { 563 rc = ::SetFrontProcess (&psn); 564 565 if (!rc) 566 { 567 ShowHideProcess (&psn, true); 568 return true; 569 } 570 } 571 return false; 572 546 573 #else 547 574
Note:
See TracChangeset
for help on using the changeset viewer.