- Timestamp:
- Apr 29, 2022 4:10:38 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r94660 r94762 462 462 { 463 463 s_pInstance = this; 464 setAcceptDrops(true); 464 465 } 465 466 … … 590 591 /* Quit application: */ 591 592 QApplication::quit(); 593 } 594 595 void UIVirtualBoxManager::dragEnterEvent(QDragEnterEvent *pEvent) 596 { 597 if (pEvent->mimeData()->hasUrls()) 598 pEvent->acceptProposedAction(); 599 } 600 601 void UIVirtualBoxManager::dropEvent(QDropEvent *pEvent) 602 { 603 if (!pEvent->mimeData()->hasUrls()) 604 return; 605 sltHandleOpenUrlCall(pEvent->mimeData()->urls()); 606 pEvent->acceptProposedAction(); 592 607 } 593 608 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.h
r94593 r94762 103 103 /** Handles close @a pEvent. */ 104 104 virtual void closeEvent(QCloseEvent *pEvent) RT_OVERRIDE; 105 /** Handles drag enter @a pEvent. */ 106 virtual void dragEnterEvent(QDragEnterEvent *event) RT_OVERRIDE; 107 /** Handles drop @a pEvent. */ 108 virtual void dropEvent(QDropEvent *event) RT_OVERRIDE; 105 109 /** @} */ 106 110
Note:
See TracChangeset
for help on using the changeset viewer.