Changeset 27424 in vbox
- Timestamp:
- Mar 16, 2010 7:48:42 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 58900
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.h
r27374 r27424 57 57 CSession& session() const; 58 58 59 /* Public members: */ 59 60 virtual void reshow() {} 61 virtual void setMask(const QRegion ®ion) { machineWindow()->setMask(region); } 60 62 61 63 protected: -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.cpp
r27415 r27424 158 158 { 159 159 m_lastVisibleRegion = pSetRegionEvent->region(); 160 machineWindowWrapper()-> machineWindow()->setMask(m_lastVisibleRegion);160 machineWindowWrapper()->setMask(m_lastVisibleRegion); 161 161 } 162 162 return true; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp
r27421 r27424 356 356 QRegion region = constRegion; 357 357 358 /* Shift region if left spacer width is NOT zero or top spacer height is NOT zero: */ 359 if (m_pLeftSpacer->geometry().width() || m_pTopSpacer->geometry().height()) 360 region.translate(m_pLeftSpacer->geometry().width(), m_pTopSpacer->geometry().height()); 361 358 362 #if 0 // TODO: Is it really needed now? 359 363 /* The global mask shift cause of toolbars and such things. */ … … 361 365 #endif 362 366 363 /* Including mini tool-bar area */ 364 QRegion toolBarRegion(m_pMiniToolBar->mask()); 365 toolBarRegion.translate(m_pMiniToolBar->mapToGlobal(toolBarRegion.boundingRect().topLeft()) - QPoint(1, 0)); 366 region += toolBarRegion; 367 /* Including mini tool-bar area: */ 368 if (m_pMiniToolBar) 369 { 370 QRegion toolBarRegion(m_pMiniToolBar->mask()); 371 toolBarRegion.translate(m_pMiniToolBar->mapToGlobal(toolBarRegion.boundingRect().topLeft()) - QPoint(1, 0)); 372 region += toolBarRegion; 373 } 367 374 368 375 #if 0 // TODO: Is it really needed now? … … 432 439 } 433 440 434 void UIMachineWindowSeamless::clearMask()435 {436 #ifdef Q_WS_WIN437 SetWindowRgn(winId(), 0, TRUE);438 #else439 QMainWindow::clearMask();440 #endif441 }442 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.h
r27375 r27424 101 101 void showSeamless(); 102 102 void setMask(const QRegion ®ion); 103 void clearMask();104 103 105 104 /* Private variables: */
Note:
See TracChangeset
for help on using the changeset viewer.