VirtualBox

Ignore:
Timestamp:
Jul 31, 2017 4:23:06 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8900: UITabBar: A bit of layout fixes.

File:
1 edited

Legend:

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

    r68209 r68211  
    276276{
    277277    /* Configure self: */
    278     setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Minimum);
     278    setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
    279279
    280280    /* Create main layout: */
     
    294294        /* Configure layout: */
    295295#ifdef VBOX_WS_MAC
    296         m_pLayout->setContentsMargins(iMargin + iSpacing, 0, iMargin + iSpacing, 0);
     296        m_pLayout->setContentsMargins(iMargin + iSpacing, iMargin, iMargin + iSpacing, iMargin);
    297297#else
    298         m_pLayout->setContentsMargins(iMargin + iSpacing, 0, iMargin, 0);
     298        m_pLayout->setContentsMargins(iMargin + iSpacing, iMargin, iMargin, iMargin);
    299299#endif
    300300        m_pLayout->setSpacing(iSpacing);
     
    305305        {
    306306            /* Configure label: */
     307            m_pLabelIcon->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
    307308            m_pLabelIcon->setPixmap(m_icon.pixmap(iMetric));
    308309        }
     
    313314        {
    314315            /* Configure label: */
     316            m_pLabelIcon->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
    315317            m_pLabelName->setText(m_strName);
    316318        }
     
    488490        /* Configure layout: */
    489491        m_pLayout->setSpacing(0);
    490         m_pLayout->setContentsMargins(0, 10, 0, 10);
     492        m_pLayout->setContentsMargins(0, 0, 0, 0);
    491493
    492494        // TODO: Workout stretch at the and as well,
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