NOTE: The following method will not be called by KD Chart, because the model is returning 0 for columnCount() / rowCount().
| 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 | { |