| 125 | |
| 126 | public Q_SLOTS: |
| 127 | bool setFilterText(const QString &text) |
| 128 | { |
| 129 | // we don't want to trigger filtering if the user is just entering line:col |
| 130 | QString const splitted = text.split(u':').at(0); |
| 131 | if (splitted == pattern) { |
| 132 | return false; |
| 133 | } |
| 134 | |
| 135 | if (filterMode == Wildcard) { |
| 136 | pattern = splitted; |
| 137 | setFilterWildcard(pattern); |
| 138 | return true; |
| 139 | } |
| 140 | |
| 141 | beginResetModel(); |
| 142 | pattern = splitted; |
| 143 | matchPath = pattern.contains(u'/'); |
| 144 | endResetModel(); |
| 145 | |
| 146 | return true; |
| 147 | } |
| 148 | |
| 149 | void setFilterMode(FilterMode m) |
| 150 | { |