MCPcopy Create free account
hub / github.com/KDE/kdevelop / updateFilterString

Method updateFilterString

kdevplatform/language/classmodel/allclassesfolder.cpp:83–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void FilteredAllClassesFolder::updateFilterString(const QString& a_newFilterString)
84{
85 m_filterString = a_newFilterString;
86
87 if (isPopulated()) {
88#if 1 // Choose speed over correctness.
89 // Close the node and re-open it should be quicker than reload each document
90 // and remove individual nodes (at the cost of losing the current selection).
91 performPopulateNode(true);
92#else
93 bool hadChanges = false;
94
95 // Reload the documents.
96 foreach (const IndexedString& file, getAllOpenDocuments())
97 hadChanges |= updateDocument(file);
98
99 // Sort if we've updated documents.
100 if (hadChanges)
101 recursiveSort();
102 else
103 {
104 // If nothing changed, the title changed so mark the node as updated.
105 m_model->nodesLayoutAboutToBeChanged(this);
106 m_model->nodesLayoutChanged(this);
107 }
108#endif
109 } else
110 {
111 // Displayed name changed only...
112 m_model->nodesLayoutAboutToBeChanged(this);
113 m_model->nodesLayoutChanged(this);
114 }
115}
116
117bool FilteredAllClassesFolder::isClassFiltered(const KDevelop::QualifiedIdentifier& a_id)
118{

Callers

nothing calls this directly

Calls 2

nodesLayoutChangedMethod · 0.80

Tested by

no test coverage detected