| 40 | |
| 41 | public: |
| 42 | int columnCount(const QModelIndex& parent = QModelIndex()) const override |
| 43 | { |
| 44 | if (parent.isValid()) { |
| 45 | // non-root node |
| 46 | return 0; |
| 47 | } |
| 48 | return 1; |
| 49 | } |
| 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 |
no test coverage detected