| 576 | } |
| 577 | |
| 578 | void UIStateManager::widgetCustomized() |
| 579 | { |
| 580 | QSplitter *splitter = qobject_cast<QSplitter *>(sender()); |
| 581 | HeaderView *header = qobject_cast<HeaderView *>(sender()); |
| 582 | |
| 583 | if (splitter) { |
| 584 | splitter->setProperty(WIDGET_CUSTOMIZED, true); |
| 585 | saveSplitterState(splitter); |
| 586 | } else if (header) { |
| 587 | // There is no way to know if a resize is manual or programamtically... |
| 588 | // So only cast against our HeaderView which has a isState() member. |
| 589 | if (header->isState(HeaderView::ResizeSection)) { |
| 590 | header->setProperty(WIDGET_CUSTOMIZED, true); |
| 591 | saveHeaderState(header); |
| 592 | } |
| 593 | } |
| 594 | } |
nothing calls this directly
no test coverage detected