Changeset 27025 in vbox for trunk/src/VBox
- Timestamp:
- Mar 4, 2010 1:47:10 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp
r27020 r27025 132 132 #endif 133 133 134 #ifdef Q_WS_MAC 135 bool UIMachineWindowSeamless::event(QEvent *pEvent) 136 { 137 switch (pEvent->type()) 138 { 139 case QEvent::Paint: 140 { 141 /* Clear the background */ 142 CGContextClearRect(::darwinToCGContextRef(this), ::darwinToCGRect(frameGeometry())); 143 break; 144 } 145 default: 146 break; 147 } 148 return QIMainDialog::event(pEvent); 149 } 150 #endif /* Q_WS_MAC */ 151 134 152 void UIMachineWindowSeamless::closeEvent(QCloseEvent *pEvent) 135 153 { … … 146 164 move(geometry.topLeft()); 147 165 resize(geometry.size()); 166 167 #ifdef Q_WS_MAC 168 /* Please note: All the stuff below has to be done after the window has 169 * switched to fullscreen. Qt changes the winId on the fullscreen 170 * switch and make this stuff useless with the old winId. So please be 171 * careful on rearrangement of the method calls. */ 172 ::darwinSetShowsWindowTransparent(this, true); 173 #endif 174 148 175 /* Perform these events: */ 149 176 qApp->processEvents(); 177 150 178 } 151 179 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.h
r27012 r27025 58 58 #ifdef Q_WS_X11 59 59 bool x11Event(XEvent *pEvent); 60 #endif 60 #endif /* Q_WS_X11 */ 61 61 void closeEvent(QCloseEvent *pEvent); 62 #ifdef Q_WS_MAC 63 bool event(QEvent *pEvent); 64 #endif /* Q_WS_MAC */ 62 65 63 66 /* Prepare helpers: */ … … 65 68 #ifdef Q_WS_MAC 66 69 void prepareMenu(); 67 #endif 70 #endif /* Q_WS_MAC */ 68 71 void prepareMachineView(); 69 72 #ifdef Q_WS_MAC 70 73 void loadWindowSettings(); 71 #endif 74 #endif /* Q_WS_MAC */ 72 75 73 76 /* Cleanup helpers: */ 74 77 #ifdef Q_WS_MAC 75 78 //void saveWindowSettings() {} 76 #endif 79 #endif /* Q_WS_MAC */ 77 80 void cleanupMachineView(); 78 81 #ifdef Q_WS_MAC 79 82 //void cleanupMenu() {} 80 #endif 83 #endif /* Q_WS_MAC */ 81 84 //void cleanupSeamless() {} 82 85 … … 88 91 #ifdef Q_WS_WIN 89 92 QRegion m_prevRegion; 90 #endif 93 #endif /* Q_WS_WIN */ 91 94 92 95 /* Factory support: */
Note:
See TracChangeset
for help on using the changeset viewer.