VirtualBox

Ignore:
Timestamp:
Jul 9, 2014 2:32:38 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: Runtime UI: Mini tool-bar: Make sure tool-bar position is updated properly on host/guest geometry changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp

    r51654 r51956  
    191191    updateAutoHideAnimationBounds();
    192192
     193    /* Update toolbar geometry if necessary: */
     194    const QString strAnimationState = property("AnimationState").toString();
     195    if (strAnimationState == "Start")
     196        m_pEmbeddedToolbar->move(m_hiddenToolbarPosition);
     197    else if (strAnimationState == "Final")
     198        m_pEmbeddedToolbar->move(m_shownToolbarPosition);
     199
    193200    /* Simulate toolbar auto-hiding: */
    194201    simulateToolbarAutoHiding();
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