Changeset 100351 in vbox
- Timestamp:
- Jul 3, 2023 3:04:01 PM (17 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/activity/vmactivity/UIVMActivityMonitor.cpp
r100245 r100351 361 361 void UIChart::mouseMoveEvent(QMouseEvent *pEvent) 362 362 { 363 #ifndef VBOX_IS_QT6_OR_LATER /* QMouseEvent::pos, x, y were replaced with QSinglePointEvent::position in Qt6 */ 363 364 int iX = width() - pEvent->x() - m_iMarginRight; 365 #else 366 int iX = width() - pEvent->position().x() - m_iMarginRight; 367 #endif 364 368 m_iDataIndexUnderCursor = -1; 365 369 if (iX > m_iMarginLeft && iX <= width() - m_iMarginRight) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp
r100344 r100351 1202 1202 return true; 1203 1203 1204 #ifndef VBOX_IS_QT6_OR_LATER /* QTouchEvent::TouchPoint was replaced by QEventPoint in 6.0 */ 1204 1205 QVector<LONG64> contacts(pTouchEvent->touchPoints().size()); 1206 #else 1207 QVector<LONG64> contacts(pTouchEvent->points().size()); 1208 #endif 1205 1209 1206 1210 long xShift = 0, yShift = 0; … … 1270 1274 } else { 1271 1275 /* Get relative touch-point normalized position: */ 1276 #ifndef VBOX_IS_QT6_OR_LATER /* QEventPoint::pos was replaced with QEventPoint::position in Qt6 */ 1272 1277 QPointF rawTouchPoint = touchPoint.normalizedPos(); 1278 #else 1279 QPointF rawTouchPoint = touchPoint.normalizedPosition(); 1280 #endif 1273 1281 1274 1282 /* Pass relative touch-point data as Normalized Integer: */ … … 1288 1296 } 1289 1297 1290 uimachine()->putEventMultiTouch( pTouchEvent->touchPoints().size(),1298 uimachine()->putEventMultiTouch(contacts.size(), 1291 1299 contacts, 1292 1300 fTouchScreen,
Note:
See TracChangeset
for help on using the changeset viewer.