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

Method data

examples/Plotter/Timeline/timechartmodel.cpp:46–53  ·  view source on GitHub ↗

! \reimp */

Source from the content-addressed store, hash-verified

44 \reimp
45 */
46QVariant TimeChartModel::data(const QModelIndex &index, int role) const
47{
48 const QVariant v = QSortFilterProxyModel::data(index, role);
49 if (index.column() % 2 != 0 || role != Qt::DisplayRole)
50 return v;
51 else
52 return QDateTime::fromSecsSinceEpoch(0).secsTo(v.toDateTime()) / 3600.0;
53}
54
55/*!
56 \reimp

Callers 1

filterAcceptsRowMethod · 0.45

Calls 1

columnMethod · 0.45

Tested by

no test coverage detected