Fix FormWindowEditor id.

Broke with recent refactoring and lead to drag&drop no longer working in
designer.

Change-Id: I33987b4fa8838ce1e009a665e9be80dbe30b45d6
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
Eike Ziller
2014-02-26 14:28:20 +01:00
parent 3694ec71ba
commit 924e54b448
2 changed files with 1 additions and 6 deletions

View File

@@ -54,6 +54,7 @@ FormWindowEditor::FormWindowEditor(Internal::DesignerXmlEditorWidget *editor) :
TextEditor::PlainTextEditor(editor), TextEditor::PlainTextEditor(editor),
d(new FormWindowEditorPrivate) d(new FormWindowEditorPrivate)
{ {
setId(Core::Id(Designer::Constants::K_DESIGNER_XML_EDITOR_ID));
d->m_widget = editor; d->m_widget = editor;
setContext(Core::Context(Designer::Constants::K_DESIGNER_XML_EDITOR_ID, setContext(Core::Context(Designer::Constants::K_DESIGNER_XML_EDITOR_ID,
Designer::Constants::C_DESIGNER_XML_EDITOR)); Designer::Constants::C_DESIGNER_XML_EDITOR));
@@ -123,11 +124,6 @@ void FormWindowEditor::syncXmlEditor()
d->m_widget->formWindowFile()->syncXmlFromFormWindow(); d->m_widget->formWindowFile()->syncXmlFromFormWindow();
} }
Core::Id FormWindowEditor::id() const
{
return Core::Id(Designer::Constants::K_DESIGNER_XML_EDITOR_ID);
}
QWidget *FormWindowEditor::toolBar() QWidget *FormWindowEditor::toolBar()
{ {
return 0; return 0;

View File

@@ -62,7 +62,6 @@ public:
// IEditor // IEditor
virtual bool open(QString *errorString, const QString &fileName, const QString &realFileName); virtual bool open(QString *errorString, const QString &fileName, const QString &realFileName);
virtual Core::Id id() const;
virtual QWidget *toolBar(); virtual QWidget *toolBar();