MCPcopy Create free account
hub / github.com/KDE/labplot / setHeaderData

Method setHeaderData

src/backend/worksheet/TreeModel.cpp:286–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286bool TreeModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role) {
287 if (role != Qt::EditRole && role != Qt::DisplayRole && orientation != Qt::Horizontal)
288 return false;
289
290 bool result = rootItem->setData(section, value);
291
292 if (result)
293 Q_EMIT headerDataChanged(orientation, section, section);
294
295 return result;
296}
297
298int TreeModel::compareStrings(const QString& value, const int row, const int column, const QModelIndex& parent) {
299 QModelIndex plotIndex = index(row, column, parent);

Callers

nothing calls this directly

Calls 1

setDataMethod · 0.45

Tested by

no test coverage detected