| 45 | } |
| 46 | |
| 47 | void FilteredProjectFolder::updateFilterString(const QString& a_newFilterString) |
| 48 | { |
| 49 | m_filterString = a_newFilterString; |
| 50 | |
| 51 | if (isPopulated()) { |
| 52 | #if 1 // Choose speed over correctness. |
| 53 | // Close the node and re-open it should be quicker than reload each document |
| 54 | // and remove individual nodes (at the cost of losing the current selection). |
| 55 | performPopulateNode(true); |
| 56 | #else |
| 57 | bool hadChanges = false; |
| 58 | |
| 59 | // Reload the documents. |
| 60 | foreach (const IndexedString& file, getAllOpenDocuments()) |
| 61 | hadChanges |= updateDocument(file); |
| 62 | |
| 63 | // Sort if we've updated documents. |
| 64 | if (hadChanges) |
| 65 | recursiveSort(); |
| 66 | else |
| 67 | { |
| 68 | // If nothing changed, the title changed so mark the node as updated. |
| 69 | m_model->nodesLayoutAboutToBeChanged(this); |
| 70 | m_model->nodesLayoutChanged(this); |
| 71 | } |
| 72 | #endif |
| 73 | } else { |
| 74 | // Displayed name changed only... |
| 75 | m_model->nodesLayoutAboutToBeChanged(this); |
| 76 | m_model->nodesLayoutChanged(this); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | bool FilteredProjectFolder::isClassFiltered(const KDevelop::QualifiedIdentifier& a_id) |
| 81 | { |
nothing calls this directly
no test coverage detected