MCPcopy Create free account
hub / github.com/KDAB/KDChart / setModel

Method setModel

src/KDChart/KDChartModelDataCache_p.h:147–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145 }
146
147 void setModel(QAbstractItemModel *model)
148 {
149 if (m_model != nullptr)
150 m_connector.disconnectSignals(m_model);
151
152 m_model = model;
153
154 if (m_model != nullptr)
155 m_connector.connectSignals(m_model);
156
157 modelReset();
158 }
159
160 QAbstractItemModel *model() const
161 {

Callers

nothing calls this directly

Calls 2

disconnectSignalsMethod · 0.80
connectSignalsMethod · 0.45

Tested by

no test coverage detected