QmlDesigner: using Qt 4.7 again

We need to support the N900

Reviewed-by: Kai Koehne
This commit is contained in:
Thomas Hartmann
2010-10-06 09:46:48 +02:00
parent d211050e07
commit f2ada23d26
157 changed files with 1261 additions and 638 deletions

View File

@@ -107,7 +107,7 @@ void DesignDocumentControllerView::fromClipboard()
QString DesignDocumentControllerView::toText() const
{
QScopedPointer<Model> outputModel(Model::create("QtQuick/Rectangle"));
QScopedPointer<Model> outputModel(Model::create("Qt/Rectangle"));
outputModel->setMetaInfo(model()->metaInfo());
QPlainTextEdit textEdit;
textEdit.setPlainText("import Qt 4.7; Item {}");
@@ -129,7 +129,7 @@ QString DesignDocumentControllerView::toText() const
void DesignDocumentControllerView::fromText(QString text)
{
QScopedPointer<Model> inputModel(Model::create("QtQuick/Rectangle"));
QScopedPointer<Model> inputModel(Model::create("Qt/Rectangle"));
inputModel->setMetaInfo(model()->metaInfo());
inputModel->setFileUrl(model()->fileUrl());
QPlainTextEdit textEdit;