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

Method data

examples/NoValues/mainwindow.cpp:56–62  ·  view source on GitHub ↗

NOTE: The following method will not be called by KD Chart, because the model is returning 0 for columnCount() / rowCount().

Source from the content-addressed store, hash-verified

54 // NOTE: The following method will not be called by KD Chart,
55 // because the model is returning 0 for columnCount() / rowCount().
56 QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override
57 {
58 Q_UNUSED(role);
59 qDebug() << "EmptyModel::data(" << index.row() << index.column() << ")";
60 Q_ASSERT_X(false, "EmptyModel::data", "We should not end here...");
61 return QVariant();
62 }
63
64 QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override
65 {

Callers

nothing calls this directly

Calls 2

rowMethod · 0.80
columnMethod · 0.45

Tested by

no test coverage detected