| 97 | } |
| 98 | |
| 99 | int ProblemModel::rowCount(const QModelIndex& parent) const |
| 100 | { |
| 101 | Q_D(const ProblemModel); |
| 102 | |
| 103 | if (!parent.isValid()) { |
| 104 | return d->m_problems->count(); |
| 105 | } else { |
| 106 | return d->m_problems->count(reinterpret_cast<ProblemStoreNode*>(parent.internalPointer())); |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | static QString displayUrl(const QUrl &url, const QUrl &base) |
| 111 | { |