MCPcopy Create free account
hub / github.com/KDAB/GammaRay / widgetCustomized

Method widgetCustomized

ui/uistatemanager.cpp:578–594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

576}
577
578void 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}

Callers

nothing calls this directly

Calls 2

isStateMethod · 0.80
setPropertyMethod · 0.45

Tested by

no test coverage detected