forked from qt-creator/qt-creator
		
	Design mode: Give IEditor a 'preferred mode'.
... and switch to it in EditorManager::activateEditor. There no longer is a need for special currentEditorChanged() handling in the editor that use a special mode. QmlDesigner receives an additional setting specifying the desired edit mode. QmlJSEditor detects whether QmlDesigner is present by checking the registered mimetypes of the Design mode and retrieves the settings via keys. Remove some obsolete code and clean up includes on qmldesignerconstants.h Reviewed-by: con
This commit is contained in:
		@@ -69,12 +69,12 @@ public:
 | 
			
		||||
    QString id() const;
 | 
			
		||||
    bool isTemporary() const { return false; }
 | 
			
		||||
    virtual bool open(const QString & fileName);
 | 
			
		||||
    virtual QString preferredMode() const;
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
    QList<int> m_context;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
struct Declaration
 | 
			
		||||
{
 | 
			
		||||
    QString text;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user