VirtualBox

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


Ignore:
Timestamp:
Feb 20, 2019 12:17:35 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9241: VirtualBox Manager UI: Fixing another regression of moving toward own scroll-area implementation; Group editor was popup in wrong place or even off-screen.

File:
1 edited

Legend:

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

    r77366 r77375  
    444444        return;
    445445
     446    /* Make sure item visible: */
     447    AssertPtrReturnVoid(parentItem());
     448    parentItem()->toGroupItem()->makeSureItemIsVisible(this);
     449
    446450    /* Assign name-editor text: */
    447451    m_pNameEditorWidget->setText(name());
     
    452456    const QSize headerSize = QSize(geometry().width(), iHeaderHeight);
    453457    const QGraphicsView *pView = model()->scene()->views().first();
    454     const QPoint viewPoint = pView->mapFromScene(geometry().topLeft().toPoint());
    455     const QPoint globalPoint = pView->parentWidget()->mapToGlobal(viewPoint);
     458    const QPointF viewPoint = pView->mapFromScene(mapToScene(QPointF(0, 0)));
     459    const QPoint globalPoint = pView->parentWidget()->mapToGlobal(viewPoint.toPoint());
    456460    m_pNameEditorWidget->move(globalPoint);
    457461    m_pNameEditorWidget->resize(headerSize);
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