Changeset 27207 in vbox
- Timestamp:
- Mar 9, 2010 12:15:40 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r27081 r27207 1089 1089 void UIMachineView::sltMousePointerShapeChanged() 1090 1090 { 1091 /* Mouse supports 'absolute' mode? */ 1091 1092 if (uisession()->isMouseSupportsAbsolute()) 1092 1093 { 1093 /* Should we use guest pointer shape? */ 1094 if (uisession()->isValidPointerShapePresent()) 1094 /* Should we hide pointer first of all? */ 1095 if (uisession()->isHidingHostPointer()) 1096 viewport()->setCursor(Qt::BlankCursor); 1097 /* Or should we use guest pointer shape? */ 1098 else if (uisession()->isValidPointerShapePresent()) 1095 1099 viewport()->setCursor(uisession()->cursor()); 1096 /* Should we hide pointer at all?*/1097 else if (uisession()->isHidingHostPointer())1098 viewport()-> setCursor(Qt::BlankCursor);1100 /* Else we have no other way except unset cursor: */ 1101 else 1102 viewport()->unsetCursor(); 1099 1103 } 1100 1104 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r27141 r27207 663 663 UIMousePointerShapeChangeEvent *pConsoleEvent = static_cast<UIMousePointerShapeChangeEvent*>(pEvent); 664 664 665 /* Remember if we should show cursor: */ 666 m_fIsHideHostPointer = !pConsoleEvent->isVisible(); 667 668 /* Cache shape dataif present: */ 665 /* In case of shape data is present: */ 669 666 if (pConsoleEvent->shapeData()) 667 { 668 /* We are ignoring visibility flag: */ 669 m_fIsHideHostPointer = false; 670 671 /* And updating current cursor shape: */ 670 672 setPointerShape(pConsoleEvent->shapeData(), pConsoleEvent->hasAlpha(), 671 673 pConsoleEvent->xHot(), pConsoleEvent->yHot(), 672 674 pConsoleEvent->width(), pConsoleEvent->height()); 675 } 676 /* In case of shape data is NOT present: */ 677 else 678 { 679 /* Remember if we should hide the cursor: */ 680 m_fIsHideHostPointer = !pConsoleEvent->isVisible(); 681 } 673 682 674 683 /* Notify listeners about mouse capability changed: */
Note:
See TracChangeset
for help on using the changeset viewer.