forked from qt-creator/qt-creator
QmlDesigner: using QtQuick 1.0 instead of Qt 4.7
huge renaming from Qt to QtQuick propertyeditor qml files moved from Qt to QtQuick auotests fixed files used in tests fixed autotests pass Task-number: QTCREATORBUG-2556 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("Qt/Rectangle"));
|
||||
QScopedPointer<Model> outputModel(Model::create("QtQuick/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("Qt/Rectangle"));
|
||||
QScopedPointer<Model> inputModel(Model::create("QtQuick/Rectangle"));
|
||||
inputModel->setMetaInfo(model()->metaInfo());
|
||||
inputModel->setFileUrl(model()->fileUrl());
|
||||
QPlainTextEdit textEdit;
|
||||
|
||||
Reference in New Issue
Block a user