| 32 | /******** Make data requests ********/ |
| 33 | |
| 34 | void ListModel::fetchMore(const QModelIndex& parent) |
| 35 | { |
| 36 | if (parent.isValid()) |
| 37 | return; |
| 38 | if (nextSearchOffset == 0) { |
| 39 | qWarning() << "fetchMore with 0 offset is wrong..."; |
| 40 | return; |
| 41 | } |
| 42 | performPaginatedSearch(); |
| 43 | } |
| 44 | |
| 45 | auto ListModel::data(const QModelIndex& index, int role) const -> QVariant |
| 46 | { |