Changeset 77375 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Feb 20, 2019 12:17:35 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGroup.cpp
r77366 r77375 444 444 return; 445 445 446 /* Make sure item visible: */ 447 AssertPtrReturnVoid(parentItem()); 448 parentItem()->toGroupItem()->makeSureItemIsVisible(this); 449 446 450 /* Assign name-editor text: */ 447 451 m_pNameEditorWidget->setText(name()); … … 452 456 const QSize headerSize = QSize(geometry().width(), iHeaderHeight); 453 457 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()); 456 460 m_pNameEditorWidget->move(globalPoint); 457 461 m_pNameEditorWidget->resize(headerSize);
Note:
See TracChangeset
for help on using the changeset viewer.