VirtualBox

Changeset 74827 in vbox for trunk


Ignore:
Timestamp:
Oct 13, 2018 2:55:59 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9241: VirtualBox Manager: Chooser pane: Properly calculate position for Tool pane.

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

Legend:

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

    r74718 r74827  
    316316
    317317    /* Move, resize and show: */
    318     m_pPaneTools->move(m_pPaneChooser->mapToGlobal(position));
     318    m_pPaneTools->move(position);
    319319    m_pPaneTools->show();
    320320    // WORKAROUND:
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.cpp

    r74483 r74827  
    101101}
    102102
     103void UIChooser::sltToolMenuRequested(UIToolsClass enmClass, const QPoint &position)
     104{
     105    /* Translate scene coordinates to global one: */
     106    emit sigToolMenuRequested(enmClass, mapToGlobal(view()->mapFromScene(position)));
     107}
     108
    103109void UIChooser::prepare()
    104110{
     
    172178            m_pChooserView, &UIChooserView::sltFocusChanged);
    173179    connect(m_pChooserModel, &UIChooserModel::sigToolMenuRequested,
    174             this, &UIChooser::sigToolMenuRequested);
     180            this, &UIChooser::sltToolMenuRequested);
    175181
    176182    /* Setup chooser-view connections: */
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.h

    r74483 r74827  
    118118    /** @} */
    119119
     120private slots:
     121
     122    /** @name General stuff.
     123      * @{ */
     124        /** Handles signal about tool popup-menu request for certain tool @a enmClass and in specified @a position. */
     125        void sltToolMenuRequested(UIToolsClass enmClass, const QPoint &position);
     126    /** @} */
     127
    120128private:
    121129
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