Changeset 75686 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Nov 23, 2018 12:54:14 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/guestctrl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestFileTable.cpp
r75682 r75686 595 595 } 596 596 597 void UIGuestFileTable::createFileViewContextMenu(const QWidget *pWidget, const QPoint & /*point*/)597 void UIGuestFileTable::createFileViewContextMenu(const QWidget *pWidget, const QPoint &point) 598 598 { 599 599 if (!pWidget) 600 600 return; 601 601 602 // QMenu menu; 603 // menu.exec(mapToGlobal(position)); 602 QMenu menu; 603 menu.addAction(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_GoUp)); 604 605 menu.addAction(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_GoHome)); 606 menu.addAction(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Refresh)); 607 menu.addSeparator(); 608 menu.addAction(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Delete)); 609 menu.addAction(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Rename)); 610 menu.addAction(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_CreateNewDirectory)); 611 /* Hide cut, copy, and paste for now. We will implement those 612 when we have an API for host file operations: */ 613 menu.addSeparator(); 614 menu.addAction(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Copy)); 615 menu.addAction(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Cut)); 616 menu.addAction(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_Paste)); 617 menu.addSeparator(); 618 menu.addAction(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_SelectAll)); 619 menu.addAction(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_InvertSelection)); 620 menu.addSeparator(); 621 menu.addAction(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Guest_ShowProperties)); 622 menu.exec(pWidget->mapToGlobal(point)); 604 623 } 605 624 -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIHostFileTable.cpp
r75682 r75686 203 203 menu.addSeparator(); 204 204 menu.addAction(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_Host_ShowProperties)); 205 206 207 208 205 menu.exec(pWidget->mapToGlobal(point)); 209 206 }
Note:
See TracChangeset
for help on using the changeset viewer.