VirtualBox

Changeset 74830 in vbox for trunk


Ignore:
Timestamp:
Oct 13, 2018 3:03:31 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9241: VirtualBox Manager: Tools pane: Close pane on mouse clicks.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsHandlerMouse.cpp

    r74249 r74830  
    6767            {
    6868                /* Which item we just clicked? */
    69                 UIToolsItem *pClickedItem =  qgraphicsitem_cast<UIToolsItem*>(pItemUnderMouse);
     69                UIToolsItem *pClickedItem = qgraphicsitem_cast<UIToolsItem*>(pItemUnderMouse);
    7070                /* Make clicked item the current one: */
    7171                if (pClickedItem)
     72                {
    7273                    model()->setCurrentItem(pClickedItem);
     74                    model()->closeParent();
     75                }
    7376                break;
    7477            }
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsModel.cpp

    r74807 r74830  
    153153{
    154154    return m_statesToolsEnabled.value(enmClass);
     155}
     156
     157void UIToolsModel::closeParent()
     158{
     159    m_pTools->close();
    155160}
    156161
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsModel.h

    r74599 r74830  
    108108        /** Returns whether certain class of tools is enabled.*/
    109109        bool areToolsEnabled(UIToolsClass enmClass) const;
     110
     111        /** Closes parent. */
     112        void closeParent();
    110113    /** @} */
    111114
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette