VirtualBox

Changeset 74245 in vbox for trunk


Ignore:
Timestamp:
Sep 13, 2018 3:23:38 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: QISplitter: Apply same colors to all handles, not just to first one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QISplitter.cpp

    r74088 r74245  
    257257{
    258258    m_color = color;
    259     QIFlatSplitterHandle *pHandle = qobject_cast<QIFlatSplitterHandle*>(handle(1));
    260     if (pHandle && m_color.isValid())
    261         pHandle->configureColor(m_color);
     259    for (int i = 1; i < count(); ++i)
     260    {
     261        QIFlatSplitterHandle *pHandle = qobject_cast<QIFlatSplitterHandle*>(handle(i));
     262        if (pHandle && m_color.isValid())
     263            pHandle->configureColor(m_color);
     264    }
    262265}
    263266
     
    265268{
    266269    m_color1 = color1; m_color2 = color2;
    267     QIShadeSplitterHandle *pHandle = qobject_cast<QIShadeSplitterHandle*>(handle(1));
    268     if (pHandle && m_color1.isValid() && m_color2.isValid())
    269         pHandle->configureColors(m_color1, m_color2);
     270    for (int i = 1; i < count(); ++i)
     271    {
     272        QIShadeSplitterHandle *pHandle = qobject_cast<QIShadeSplitterHandle*>(handle(i));
     273        if (pHandle && m_color1.isValid() && m_color2.isValid())
     274            pHandle->configureColors(m_color1, m_color2);
     275    }
    270276}
    271277
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