Changeset 26967 in vbox
- Timestamp:
- Mar 2, 2010 6:32:10 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r26964 r26967 587 587 /* Mouse capability state-change updater: */ 588 588 connect(uisession(), SIGNAL(sigMouseCapabilityChange()), this, SLOT(sltMouseCapabilityChanged())); 589 590 /* Mouse captivity status-change updater: */ 591 connect(uisession(), SIGNAL(sigMouseCapturedStatusChanged()), this, SLOT(sltMouseCapturedStatusChanged())); 589 592 } 590 593 … … 1126 1129 /* Notify all listeners: */ 1127 1130 emitMouseStateChanged(); 1131 } 1132 1133 void UIMachineView::sltMouseCapturedStatusChanged() 1134 { 1135 if (!uisession()->isMouseCaptured()) 1136 { 1137 /* We will just release mouse if it was released in other than that window: */ 1138 #ifndef Q_WS_WIN32 1139 viewport()->releaseMouse(); 1140 #endif 1141 /* Also we will unset cursor if mouse was released in other than that window: */ 1142 viewport()->unsetCursor(); 1143 } 1128 1144 } 1129 1145 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h
r26929 r26967 156 156 virtual void sltMouseCapabilityChanged(); 157 157 158 /* Session callback handlers: */ 159 virtual void sltMouseCapturedStatusChanged(); 160 158 161 private slots: 159 162 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r26964 r26967 128 128 129 129 /* Mouse setters: */ 130 void setMouseCaptured(bool fIsMouseCaptured) { m_fIsMouseCaptured = fIsMouseCaptured; }130 void setMouseCaptured(bool fIsMouseCaptured) { m_fIsMouseCaptured = fIsMouseCaptured; emit sigMouseCapturedStatusChanged(); } 131 131 void setMouseIntegrated(bool fIsMouseIntegrated) { m_fIsMouseIntegrated = fIsMouseIntegrated; } 132 132 … … 152 152 void sigRuntimeError(bool bIsFatal, const QString &strErrorId, const QString &strMessage); 153 153 154 /* Session signals: */ 155 void sigMouseCapturedStatusChanged(); 156 154 157 private slots: 155 158
Note:
See TracChangeset
for help on using the changeset viewer.