VirtualBox

Changeset 57025 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 20, 2015 3:37:24 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: 5978: Mini-toolbar: Update internal widget position/mask according to animation state in any case.

File:
1 edited

Legend:

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

    r57024 r57025  
    518518    m_pAnimation->update();
    519519
    520     /* Update toolbar geometry if necessary: */
    521     const QString strAnimationState = property("AnimationState").toString();
    522     if (strAnimationState == "Start")
     520    /* Update embedded-toolbar geometry if known: */
     521    if (property("AnimationState").toString() == "Final")
     522        m_pEmbeddedToolbar->move(m_shownToolbarPosition);
     523    else
    523524        m_pEmbeddedToolbar->move(m_hiddenToolbarPosition);
    524     else if (strAnimationState == "Final")
    525         m_pEmbeddedToolbar->move(m_shownToolbarPosition);
    526525
    527526    /* Simulate toolbar auto-hiding: */
     
    579578
    580579    /* Update embedded-toolbar geometry if known: */
    581     const QString strAnimationState = property("AnimationState").toString();
    582     if (strAnimationState == "Start")
     580    if (property("AnimationState").toString() == "Final")
     581        m_pEmbeddedToolbar->move(m_shownToolbarPosition);
     582    else
    583583        m_pEmbeddedToolbar->move(m_hiddenToolbarPosition);
    584     else if (strAnimationState == "Final")
    585         m_pEmbeddedToolbar->move(m_shownToolbarPosition);
    586584
    587585    /* Adjust window mask: */
     
    810808    AssertPtrReturnVoid(m_pEmbeddedToolbar);
    811809    m_pEmbeddedToolbar->move(point);
     810
     811#ifdef Q_WS_X11
     812    /* Update window mask: */
     813    setMask(m_pEmbeddedToolbar->geometry());
     814#endif /* Q_WS_X11 */
    812815}
    813816
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