MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / setState

Method setState

UIComponent/InspectionWidgetFactory.cpp:106–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104//
105
106void
107InspectionWidget::setState(int state, Suscan::Analyzer *analyzer)
108{
109 bool prevAttached = m_analyzer != nullptr;
110
111 m_state = state;
112
113 if (m_analyzer != analyzer) {
114 if (prevAttached)
115 this->detachAnalyzer();
116
117 if (analyzer != nullptr && !m_onceAttached) {
118 m_analyzer = analyzer;
119 m_onceAttached = true;
120 this->attachAnalyzer(analyzer);
121 } else {
122 m_analyzer = nullptr;
123 }
124 }
125}
126
127void
128InspectionWidget::closeRequested()

Callers

nothing calls this directly

Calls 2

detachAnalyzerMethod · 0.95
attachAnalyzerMethod · 0.95

Tested by

no test coverage detected