Skip to content
Snippets Groups Projects
Commit a3187add authored by Christian Kamm's avatar Christian Kamm
Browse files

QmlProjectManager: more libraryPaths -> importPaths renames.

See c722282c.
parent d37771d7
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
<module>
<type name="QmlProject.Project">
<property name="sourceDirectory" type="string"/>
<property name="libraryPaths" type="string" isList="true"/>
<property name="importPaths" type="string" isList="true"/>
<property name="content" type="QmlProjectItem" isList="true"/>
</type>
<type name="QmlProjectItem">
......
......@@ -85,14 +85,14 @@ QStringList QmlProjectItem::importPaths() const
return d->importPaths;
}
void QmlProjectItem::setImportPaths(const QStringList &libraryPaths)
void QmlProjectItem::setImportPaths(const QStringList &importPaths)
{
Q_D(QmlProjectItem);
if (d->importPaths == libraryPaths)
if (d->importPaths == importPaths)
return;
d->importPaths = libraryPaths;
d->importPaths = importPaths;
emit importPathsChanged();
}
......
......@@ -95,7 +95,7 @@ void QmlProject::parseProject(RefreshOptions options)
&& qobject_cast<QmlProjectItem*>(component->create())) {
m_projectItem = qobject_cast<QmlProjectItem*>(component->create());
connect(m_projectItem.data(), SIGNAL(qmlFilesChanged()), this, SLOT(refreshFiles()));
connect(m_projectItem.data(), SIGNAL(libraryPathsChanged()), this, SLOT(refreshImportPaths()));
connect(m_projectItem.data(), SIGNAL(importPathsChanged()), this, SLOT(refreshImportPaths()));
refreshImportPaths();
} else {
Core::MessageManager *messageManager = Core::ICore::instance()->messageManager();
......@@ -165,12 +165,12 @@ bool QmlProject::validProjectFile() const
return !m_projectItem.isNull();
}
QStringList QmlProject::libraryPaths() const
QStringList QmlProject::importPaths() const
{
QStringList libraryPaths;
QStringList importPaths;
if (m_projectItem)
libraryPaths = m_projectItem.data()->importPaths();
return libraryPaths;
importPaths = m_projectItem.data()->importPaths();
return importPaths;
}
bool QmlProject::addFiles(const QStringList &filePaths)
......@@ -195,7 +195,7 @@ void QmlProject::refreshFiles()
void QmlProject::refreshImportPaths()
{
m_modelManager->setProjectImportPaths(libraryPaths());
m_modelManager->setProjectImportPaths(importPaths());
}
QString QmlProject::displayName() const
......
......@@ -99,7 +99,7 @@ public:
QDir projectDir() const;
QStringList files() const;
QStringList libraryPaths() const;
QStringList importPaths() const;
bool addFiles(const QStringList &filePaths);
......
......@@ -129,9 +129,9 @@ QStringList QmlProjectRunConfiguration::viewerArguments() const
args.append(m_qmlViewerArgs);
// arguments from .qmlproject file
foreach (const QString &libraryPath, qmlTarget()->qmlProject()->libraryPaths()) {
foreach (const QString &importPath, qmlTarget()->qmlProject()->importPaths()) {
args.append(QLatin1String("-L"));
args.append(libraryPath);
args.append(importPath);
}
const QString s = mainScript();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment