Changeset 106207 in vbox
- Timestamp:
- Oct 2, 2024 12:16:13 PM (4 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager/details
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsModel.cpp
r106206 r106207 35 35 36 36 /* GUI includes: */ 37 #include "UICommon.h" 37 38 #include "UIConverter.h" 38 39 #include "UIDesktopWidgetWatchdog.h" … … 738 739 } 739 740 741 void UIDetailsModel::sltDetachCOM() 742 { 743 /* Clear model of unwanted machine-items: */ 744 setItems(QList<UIVirtualMachineItem*>()); 745 } 746 740 747 void UIDetailsModel::sltToggleAnimationFinished(DetailsElementType enmType, bool fToggled) 741 748 { … … 767 774 void UIDetailsModel::prepare() 768 775 { 776 /* Install cleanup handler: */ 777 connect(&uiCommon(), &UICommon::sigAskToDetachCOM, 778 this, &UIDetailsModel::sltDetachCOM); 779 769 780 /* Prepare scene: */ 770 781 m_pScene = new QGraphicsScene(this); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsModel.h
r106206 r106207 191 191 192 192 private slots: 193 194 /** Handles command to detach COM. */ 195 void sltDetachCOM(); 193 196 194 197 /** Handles sigal about details element of certain @a enmType toggling finished, making element @a fToggled. */
Note:
See TracChangeset
for help on using the changeset viewer.