forked from qt-creator/qt-creator
QmlDesigner: using Qt 4.7 again
We need to support the N900 Reviewed-by: Kai Koehne
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user