| 131 | } |
| 132 | |
| 133 | virtual bool setData(const QModelIndex &index, const QVariant &value, |
| 134 | int role = Qt::EditRole) |
| 135 | { |
| 136 | if (index.column() == 0 && role == Qt::CheckStateRole) |
| 137 | { |
| 138 | Qt::CheckState state = static_cast<Qt::CheckState>(value.toInt()); |
| 139 | return setFilterState(index, state); |
| 140 | } |
| 141 | |
| 142 | QModelIndex sourceIndex = mapToSource(index); |
| 143 | return QSortFilterProxyModel::sourceModel()->setData(sourceIndex, value, role); |
| 144 | } |
| 145 | |
| 146 | QString relPath(const QString &path) const |
| 147 | { |
no outgoing calls
no test coverage detected