Changeset 58446 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Oct 28, 2015 2:22:24 PM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp
r57844 r58446 5 5 6 6 /* 7 * Copyright (C) 2012-201 3Oracle Corporation7 * Copyright (C) 2012-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 1380 1380 case QEvent::GraphicsSceneContextMenu: 1381 1381 return processContextMenuEvent(static_cast<QGraphicsSceneContextMenuEvent*>(pEvent)); 1382 /* Drag&drop scroll-event handler: */1382 /* Drag&drop scroll-event(drag-move) handler: */ 1383 1383 case QEvent::GraphicsSceneDragMove: 1384 1384 return processDragMoveEvent(static_cast<QGraphicsSceneDragDropEvent*>(pEvent)); 1385 /* Drag&drop scroll-event(drag-leave) handler: */ 1386 case QEvent::GraphicsSceneDragLeave: 1387 return processDragLeaveEvent(static_cast<QGraphicsSceneDragDropEvent*>(pEvent)); 1385 1388 } 1386 1389 … … 1685 1688 } 1686 1689 1690 bool UIGChooserModel::processDragLeaveEvent(QGraphicsSceneDragDropEvent *pEvent) 1691 { 1692 /* Event object is not required here: */ 1693 Q_UNUSED(pEvent); 1694 1695 /* Make sure to stop scrolling as drag-leave event happened: */ 1696 if (m_fIsScrollingInProgress) 1697 m_fIsScrollingInProgress = false; 1698 1699 /* Pass event: */ 1700 return false; 1701 } 1702 1687 1703 void UIGChooserModel::loadGroupTree() 1688 1704 { -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.h
r57039 r58446 5 5 6 6 /* 7 * Copyright (C) 2012 Oracle Corporation7 * Copyright (C) 2012-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 261 261 /* Handler: Drag&drop event: */ 262 262 bool processDragMoveEvent(QGraphicsSceneDragDropEvent *pEvent); 263 bool processDragLeaveEvent(QGraphicsSceneDragDropEvent *pEvent); 263 264 264 265 /* Helpers: Loading stuff: */
Note:
See TracChangeset
for help on using the changeset viewer.