VirtualBox

Changeset 108005 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jan 31, 2025 8:45:02 PM (3 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167277
Message:

FE/Qt: bugref:10814: VBox Manager / Tools pane: A bit of cleanup for tool model.

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

Legend:

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

    r108002 r108005  
    434434                        /* Which item we just clicked? */
    435435                        UIToolsItem *pClickedItem = qgraphicsitem_cast<UIToolsItem*>(pItemUnderMouse);
    436                         /* Make clicked item the current one: */
    437                         if (pClickedItem && pClickedItem->isEnabled())
     436                        if (pClickedItem)
    438437                        {
    439                             setCurrentItem(pClickedItem);
    440                             /* Close the widget in popup mode only: */
    441                             if (tools()->isPopup())
    442                                 close();
    443                             return true;
     438                            /* Make clicked item the current one: */
     439                            if (pClickedItem->isEnabled())
     440                            {
     441                                setCurrentItem(pClickedItem);
     442                                /* Close the widget in popup mode only: */
     443                                if (tools()->isPopup())
     444                                    close();
     445                                return true;
     446                            }
    444447                        }
    445448                        break;
     
    689692        case ToolsModelData_Margin: return 0;
    690693        case ToolsModelData_Spacing: return 1;
    691         case ToolsModelData_MajorSpacing: return 20;
     694        case ToolsModelData_MajorSpacing: return 0;
    692695
    693696        /* Default: */
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsModel.h

    r108002 r108005  
    130130        UIToolsItem *item(UIToolType enmType) const;
    131131
    132         /** Returns whether at least one item hovered: */
     132        /** Returns whether at least one item hovered. */
    133133        bool isAtLeastOneItemHovered() const;
    134134    /** @} */
Note: See TracChangeset for help on using the changeset viewer.

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