Changeset 88742 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 28, 2021 10:50:44 AM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/medium
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.cpp
r87001 r88742 679 679 } 680 680 681 void UIMediumManagerWidget::sltDetachCOM() 682 { 683 /* Clear tree-widgets: */ 684 QITreeWidget *pTreeWidgetHD = treeWidget(UIMediumDeviceType_HardDisk); 685 if (pTreeWidgetHD) 686 pTreeWidgetHD->clear(); 687 QITreeWidget *pTreeWidgetCD = treeWidget(UIMediumDeviceType_DVD); 688 if (pTreeWidgetCD) 689 pTreeWidgetCD->clear(); 690 QITreeWidget *pTreeWidgetFD = treeWidget(UIMediumDeviceType_Floppy); 691 if (pTreeWidgetFD) 692 pTreeWidgetFD->clear(); 693 } 694 681 695 void UIMediumManagerWidget::prepare() 682 696 { … … 729 743 connect(&uiCommon(), &UICommon::sigMediumEnumerationFinished, 730 744 this, &UIMediumManagerWidget::sltHandleMediumEnumerationFinish); 745 746 /* Configure COM related connections: */ 747 connect(&uiCommon(), &UICommon::sigAskToDetachCOM, 748 this, &UIMediumManagerWidget::sltDetachCOM); 731 749 } 732 750 -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.h
r87342 r88742 203 203 /** @} */ 204 204 205 /** @name Medium search stuff.205 /** @name Medium search stuff. 206 206 * @{ */ 207 207 /** Adjusts tree-widgets according content. */ 208 208 void sltHandlePerformSearch(); 209 /** @} */ 210 211 /** @name Medium search stuff. 212 * @{ */ 213 /** Handles command to detach COM stuff. */ 214 void sltDetachCOM(); 209 215 /** @} */ 210 216
Note:
See TracChangeset
for help on using the changeset viewer.