forked from qt-creator/qt-creator
		
	CppTools: Reparse editor documents after active project change
Change-Id: I010709c866291bf59c27f4a05765e1ab0efd28af Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
		@@ -36,11 +36,15 @@ class BaseEditorDocumentProcessor;
 | 
			
		||||
class CPPTOOLS_EXPORT CppEditorDocumentHandle
 | 
			
		||||
{
 | 
			
		||||
public:
 | 
			
		||||
    CppEditorDocumentHandle();
 | 
			
		||||
    virtual ~CppEditorDocumentHandle();
 | 
			
		||||
 | 
			
		||||
    bool needsRefresh() const;
 | 
			
		||||
    void setNeedsRefresh(bool needsRefresh);
 | 
			
		||||
    enum RefreshReason {
 | 
			
		||||
        None,
 | 
			
		||||
        Usual, // e.g. project configuration change or change of editor contents
 | 
			
		||||
        ActiveProjectChange
 | 
			
		||||
    };
 | 
			
		||||
    RefreshReason refreshReason() const;
 | 
			
		||||
    void setRefreshReason(const RefreshReason &refreshReason);
 | 
			
		||||
 | 
			
		||||
    // For the Working Copy
 | 
			
		||||
    virtual QString filePath() const = 0;
 | 
			
		||||
@@ -56,7 +60,7 @@ public:
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
    SendDocumentTracker m_sendTracker;
 | 
			
		||||
    bool m_needsRefresh;
 | 
			
		||||
    RefreshReason m_refreshReason = None;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
} // namespace CppTools
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user