Changeset 100478 in vbox for trunk/src/VBox
- Timestamp:
- Jul 10, 2023 4:17:55 PM (17 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/medium/viso
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoBrowserBase.h
r100329 r100478 91 91 QAction *m_pGoForward; 92 92 QAction *m_pGoBackward; 93 93 QPointer<QMenu> m_pSubMenu; 94 94 95 95 protected slots: -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoContentBrowser.cpp
r100460 r100478 430 430 pRootItem->setData(QApplication::translate("UIVisoCreatorWidget", "Local Path"), UICustomFileSystemModelData_LocalPath); 431 431 } 432 if (m_pSubMenu) 433 m_pSubMenu->setTitle(QApplication::translate("UIVisoCreatorWidget", "VISO Browser")); 434 432 435 setFileTableLabelText(QApplication::translate("UIVisoCreatorWidget","VISO Content")); 433 436 } … … 633 636 { 634 637 AssertReturnVoid(pMenu); 635 636 pMenu->addAction(m_pRemoveAction); 637 pMenu->addAction(m_pRenameAction); 638 pMenu->addAction(m_pCreateNewDirectoryAction); 639 pMenu->addAction(m_pResetAction); 638 QMenu *pSubMenu = new QMenu(QApplication::translate("UIVisoCreatorWidget", "VISO Browser"), pMenu); 639 pMenu->addMenu(pSubMenu); 640 AssertReturnVoid(pSubMenu); 641 m_pSubMenu = pSubMenu; 642 643 m_pSubMenu->addAction(m_pGoBackward); 644 m_pSubMenu->addAction(m_pGoForward); 645 m_pSubMenu->addAction(m_pGoUp); 646 m_pSubMenu->addAction(m_pGoHome); 647 648 m_pSubMenu->addSeparator(); 649 650 m_pSubMenu->addAction(m_pRemoveAction); 651 m_pSubMenu->addAction(m_pRenameAction); 652 m_pSubMenu->addAction(m_pCreateNewDirectoryAction); 653 m_pSubMenu->addAction(m_pResetAction); 640 654 } 641 655 -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.cpp
r100389 r100478 598 598 m_pMainMenu->addAction(m_pRemoveISOAction); 599 599 } 600 601 if (m_pHostBrowser) 602 m_pHostBrowser->prepareMainMenu(m_pMainMenu); 603 600 604 if (m_pVISOContentBrowser) 601 605 m_pVISOContentBrowser->prepareMainMenu(m_pMainMenu); -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoHostBrowser.cpp
r100332 r100478 174 174 { 175 175 setFileTableLabelText(QApplication::translate("UIVisoCreatorWidget","Host System")); 176 if (m_pSubMenu) 177 m_pSubMenu->setTitle(QApplication::translate("UIVisoCreatorWidget", "VISO Browser")); 176 178 } 177 179 … … 271 273 } 272 274 275 void UIVisoHostBrowser::prepareMainMenu(QMenu *pMenu) 276 { 277 AssertReturnVoid(pMenu); 278 QMenu *pSubMenu = new QMenu(QApplication::translate("UIVisoCreatorWidget", "Host Browser"), pMenu); 279 pMenu->addMenu(pSubMenu); 280 AssertReturnVoid(pSubMenu); 281 m_pSubMenu = pSubMenu; 282 283 m_pSubMenu->addAction(m_pGoBackward); 284 m_pSubMenu->addAction(m_pGoForward); 285 m_pSubMenu->addAction(m_pGoUp); 286 m_pSubMenu->addAction(m_pGoHome); 287 } 288 273 289 void UIVisoHostBrowser::sltTableSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected) 274 290 { -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoHostBrowser.h
r100329 r100478 60 60 /* The list of path of the selected file objects. */ 61 61 QStringList selectedPathList() const; 62 void prepareMainMenu(QMenu *pMenu); 62 63 63 64 public slots:
Note:
See TracChangeset
for help on using the changeset viewer.