| 113 | } |
| 114 | |
| 115 | QVariant ReadingListModel::headerData(int section, Qt::Orientation orientation, int role) const |
| 116 | { |
| 117 | if (orientation == Qt::Horizontal && role == Qt::DisplayRole) |
| 118 | return rootItem->data(section); |
| 119 | |
| 120 | return QVariant(); |
| 121 | } |
| 122 | |
| 123 | QModelIndex ReadingListModel::index(int row, int column, const QModelIndex &parent) const |
| 124 | { |