forked from qt-creator/qt-creator
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:
@@ -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;
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user