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

Method disconnectSignals

src/KDChart/KDChartModelDataCache_p.cpp:39–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void ModelSignalMapperConnector::disconnectSignals(QAbstractItemModel *model)
40{
41 disconnect(model, SIGNAL(destroyed()), this, SLOT(resetModel()));
42 disconnect(model, SIGNAL(columnsInserted(QModelIndex, int, int)), this, SLOT(columnsInserted(QModelIndex, int, int)));
43 disconnect(model, SIGNAL(columnsRemoved(QModelIndex, int, int)), this, SLOT(columnsRemoved(QModelIndex, int, int)));
44 disconnect(model, SIGNAL(dataChanged(QModelIndex, QModelIndex)), this, SLOT(dataChanged(QModelIndex, QModelIndex)));
45 disconnect(model, SIGNAL(layoutChanged()), this, SLOT(layoutChanged()));
46 disconnect(model, SIGNAL(modelReset()), this, SLOT(modelReset()));
47 disconnect(model, SIGNAL(rowsInserted(QModelIndex, int, int)), this, SLOT(rowsInserted(QModelIndex, int, int)));
48 disconnect(model, SIGNAL(rowsRemoved(QModelIndex, int, int)), this, SLOT(rowsRemoved(QModelIndex, int, int)));
49}
50
51void ModelSignalMapperConnector::resetModel()
52{

Callers 1

setModelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected