VirtualBox

Changeset 67092 in vbox


Ignore:
Timestamp:
May 25, 2017 3:33:50 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: Selector UI: Tools pane: Few macOS adjustments.

File:
1 edited

Legend:

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

    r67091 r67092  
    200200        m_pTabBar->setIconSize(QSize(iIconMetric, iIconMetric));
    201201        m_pTabBar->setMovable(true);
     202#ifdef VBOX_WS_MAC
     203        /* Snapshots pane tab looks quite alone under macOS: */
     204        m_pTabBar->setAutoHide(true);
     205#endif
    202206        m_pTabBar->setDrawBase(false);
    203207        m_pTabBar->setExpanding(false);
     
    325329                {
    326330                    /* Configure button: */
     331#ifdef VBOX_WS_MAC
     332                    /* Close buttons should be a bit smaller on macOS: */
     333                    pButtonClose->setIconSize(QSize(12, 12));
     334#endif
    327335                    pButtonClose->setIcon(UIIconPool::iconSet(":/close_16px.png"));
    328336                    pButtonClose->setProperty("ToolsType", QVariant::fromValue(enmType));
     
    332340                }
    333341            }
     342#ifdef VBOX_WS_MAC
     343            /* Create placeholder of the same height if on macOS: */
     344            else
     345            {
     346                QWidget *pWidget = new QWidget;
     347                pWidget->setFixedSize(1, 26);
     348                m_pTabBar->setTabButton(iActualTabIndex, QTabBar::RightSide, pWidget);
     349            }
     350#endif
    334351            /* Store the data: */
    335352            m_pTabBar->setTabData(iActualTabIndex, QVariant::fromValue(enmType));
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