- Timestamp:
- Oct 14, 2024 4:38:55 PM (7 weeks ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.cpp
r106061 r106312 1122 1122 QApplication::translate("UIMessageCenter", "Failed to change keyboard parameter.") + 1123 1123 UIErrorString::formatErrorInfo(comKeyboard)); 1124 }1125 1126 /* static */1127 void UINotificationMessage::cannotChangeMouseParameter(const CMouse &comMouse)1128 {1129 createMessage(1130 QApplication::translate("UIMessageCenter", "Mouse failure ..."),1131 QApplication::translate("UIMessageCenter", "Failed to change mouse parameter.") +1132 UIErrorString::formatErrorInfo(comMouse));1133 1124 } 1134 1125 -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.h
r106061 r106312 452 452 * @param comKeyboard Brings the object parameter being changed for. */ 453 453 static void cannotChangeKeyboardParameter(const CKeyboard &comKeyboard); 454 /** Notifies about inability to change IMouse parameter.455 * @param comMouse Brings the object parameter being changed for. */456 static void cannotChangeMouseParameter(const CMouse &comMouse);457 454 /** Notifies about inability to change IVirtualSystemDescription parameter. 458 455 * @param comVsd Brings the object parameter being changed for. */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r106061 r106312 587 587 return false; 588 588 comMouse.PutMouseEvent(iDx, iDy, iDz, iDw, iButtonState); 589 const bool fSuccess = comMouse.isOk(); 590 if (!fSuccess) 591 UINotificationMessage::cannotChangeMouseParameter(comMouse); 592 return fSuccess; 589 return comMouse.isOk(); 593 590 } 594 591 … … 599 596 return false; 600 597 comMouse.PutMouseEventAbsolute(iX, iY, iDz, iDw, iButtonState); 601 const bool fSuccess = comMouse.isOk(); 602 if (!fSuccess) 603 UINotificationMessage::cannotChangeMouseParameter(comMouse); 604 return fSuccess; 598 return comMouse.isOk(); 605 599 } 606 600 … … 611 605 return false; 612 606 comMouse.PutEventMultiTouch(iCount, contacts, fIsTouchScreen, uScanTime); 613 const bool fSuccess = comMouse.isOk(); 614 if (!fSuccess) 615 UINotificationMessage::cannotChangeMouseParameter(comMouse); 616 return fSuccess; 607 return comMouse.isOk(); 617 608 } 618 609
Note:
See TracChangeset
for help on using the changeset viewer.