Designer: Use a BaseTextEditorFactory to create the Xml editor

Change-Id: Iac80f6ef017a7c5acf1ed89ac0ece83c6a67abec
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
hjk
2014-09-03 12:38:51 +02:00
parent afd56bd8ad
commit 88eb60d331
11 changed files with 69 additions and 191 deletions

View File

@@ -30,6 +30,7 @@
#include "formeditorstack.h"
#include "formwindoweditor.h"
#include "formeditorw.h"
#include "formwindowfile.h"
#include <widgethost.h>
@@ -188,7 +189,7 @@ void FormEditorStack::modeAboutToChange(Core::IMode *m)
// Sync the editor when entering edit mode
if (m && m->id() == Core::Constants::MODE_EDIT)
foreach (const EditorData &data, m_formEditors)
data.formWindowEditor->syncXmlEditor();
data.formWindowEditor->formWindowFile()->syncXmlFromFormWindow();
}
} // Internal