VirtualBox

Changeset 61248 in vbox for trunk


Ignore:
Timestamp:
May 27, 2016 2:50:41 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
107538
Message:

FE/Qt: Mac OS X: Yet another Qt5 migration consequence: Small workaround for the initially hidden tool-bar case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp

    r61101 r61248  
    16951695    {
    16961696#ifdef VBOX_WS_MAC
    1697         m_pToolBar->setHidden(!gEDataManager->selectorWindowToolBarVisible());
     1697        // WORKAROUND:
     1698        // There is an issue in Qt5 main-window tool-bar implementation:
     1699        // if you are hiding it before it's shown for the first time,
     1700        // there is an ugly empty container appears instead, so we
     1701        // have to hide tool-bar asynchronously to avoid that.
     1702        if (!gEDataManager->selectorWindowToolBarVisible())
     1703            QMetaObject::invokeMethod(m_pToolBar, "hide", Qt::QueuedConnection);
    16981704#else /* VBOX_WS_MAC */
    16991705        m_pBar->setHidden(!gEDataManager->selectorWindowToolBarVisible());
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette