| 915 | } |
| 916 | |
| 917 | void ContextBrowserPlugin::updateReady(const IndexedString& file, const ReferencedTopDUContext& /*topContext*/) |
| 918 | { |
| 919 | const auto url = file.toUrl(); |
| 920 | for (QMap<View*, ViewHighlights>::iterator it = m_highlightedRanges.begin(); it != m_highlightedRanges.end(); |
| 921 | ++it) { |
| 922 | if (it.key()->document()->url() == url) { |
| 923 | if (Algorithm::insert(m_updateViews, it.key()).inserted) { |
| 924 | qCDebug(PLUGIN_CONTEXTBROWSER) << "adding view for update"; |
| 925 | |
| 926 | // Don't change the highlighted declaration after finished parse-jobs |
| 927 | (*it).keep = true; |
| 928 | } |
| 929 | } |
| 930 | } |
| 931 | |
| 932 | if (!m_updateViews.isEmpty()) |
| 933 | m_updateTimer->start(highlightingTimeout); |
| 934 | } |
| 935 | |
| 936 | void ContextBrowserPlugin::textDocumentCreated(KDevelop::IDocument* document) |
| 937 | { |