QmlDesigner: use '.' instead of '/' for package names

Using '/' was legacy and is just confusing.
The code is way more consistent now with QmlJS and does not require
conversions.
This commit is contained in:
Thomas Hartmann
2011-03-01 16:59:05 +01:00
parent 0200927dfa
commit 583cf29891
20 changed files with 97 additions and 90 deletions

View File

@@ -275,7 +275,7 @@ QList<RewriterView::Error> DesignDocumentController::loadMaster(QPlainTextEdit *
//m_d->masterModel = Model::create(m_d->textModifier, m_d->searchPath, errors);
m_d->masterModel = Model::create("QtQuick/Rectangle", 1, 0);
m_d->masterModel = Model::create("QtQuick.Rectangle", 1, 0);
#if defined(VIEWLOGGER)
m_d->viewLogger = new Internal::ViewLogger(m_d->model.data());
@@ -284,7 +284,7 @@ QList<RewriterView::Error> DesignDocumentController::loadMaster(QPlainTextEdit *
m_d->masterModel->setFileUrl(m_d->searchPath);
m_d->subComponentModel = Model::create("QtQuick/Rectangle", 1, 0);
m_d->subComponentModel = Model::create("QtQuick.Rectangle", 1, 0);
m_d->subComponentModel->setFileUrl(m_d->searchPath);
m_d->subComponentManager = new SubComponentManager(m_d->masterModel->metaInfo(), this);
@@ -775,7 +775,7 @@ QString DesignDocumentController::contextHelpId() const
QString helpId;
if (!nodes.isEmpty()) {
helpId = nodes.first().type();
helpId.replace("QtQuick/", "QML.");
helpId.replace("QtQuick", "QML");
}
return helpId;