VirtualBox

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


Ignore:
Timestamp:
Feb 20, 2019 11:44:15 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9241: VirtualBox Manager UI: Fixing regression of moving toward own scroll-area implementation; Tool-menu was popup in wrong place.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp

    r77366 r77373  
    157157    {
    158158        case UIChooserItemType_Global:
    159             emit sigToolMenuRequested(UIToolClass_Global, pItem->geometry().topRight().toPoint());
     159            emit sigToolMenuRequested(UIToolClass_Global, pItem->mapToScene(QPointF(pItem->size().width(), 0)).toPoint());
    160160            break;
    161161        case UIChooserItemType_Group:
    162162        case UIChooserItemType_Machine:
    163             emit sigToolMenuRequested(UIToolClass_Machine, pItem->geometry().topRight().toPoint());
     163        {
     164            emit sigToolMenuRequested(UIToolClass_Machine, pItem->mapToScene(QPointF(pItem->size().width(), 0)).toPoint());
    164165            break;
     166        }
    165167        default:
    166168            break;
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