Revert "Design mode: Suppress warning about top level spacers."

This reverts commit c5d6c139c1.
This commit is contained in:
Friedemann Kleint
2010-03-08 15:03:12 +01:00
parent 09c337dcab
commit 666c96cf5d

View File

@@ -37,7 +37,6 @@
#include "formwindoweditor.h"
#include "formeditorw.h"
#include "designerconstants.h"
#include "qt_private/formwindowbase_p.h"
#include <QtCore/QStringList>
@@ -131,12 +130,12 @@ void FormEditorStack::formChanged()
TextEditor::BaseTextDocument *doc = qobject_cast<TextEditor::BaseTextDocument*>(activeEditor->xmlEditor->file());
Q_ASSERT(doc);
if (doc) {
// Save quietly (without spacer's warning).
if (const qdesigner_internal::FormWindowBase *fwb = qobject_cast<const qdesigner_internal::FormWindowBase *>(activeEditor->formEditor))
doc->document()->setPlainText(fwb->fileContents());
doc->document()->setPlainText(activeEditor->formEditor->contents());
}
}
}
} // Internal
} // Designer