- Timestamp:
- Sep 13, 2018 3:23:38 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QISplitter.cpp
r74088 r74245 257 257 { 258 258 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 } 262 265 } 263 266 … … 265 268 { 266 269 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 } 270 276 } 271 277
Note:
See TracChangeset
for help on using the changeset viewer.