\brief Proxy function that only uses the DisplayRole of the first column.
| 50 | |
| 51 | /// \brief Proxy function that only uses the DisplayRole of the first column. |
| 52 | QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override |
| 53 | { |
| 54 | if (index.column() != 0 || role != Qt::DisplayRole) { |
| 55 | return QVariant(); |
| 56 | } |
| 57 | return sourceModel()->data(mapToSource(index), role); |
| 58 | } |
| 59 | |
| 60 | protected: |
| 61 | bool lessThan(const QModelIndex& sourceLeft, const QModelIndex& sourceRight) const override |
no outgoing calls
no test coverage detected