diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2010-02-03 08:59:38 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@nokia.com> | 2010-02-03 09:13:53 +0100 |
commit | 8577347446bf508454220293ebc26872c79dc37f (patch) | |
tree | dc054bf70249ee58d52f152b7b723c3853b7bc8f /src/plugins/qmlprojectmanager/fileformat/qmlprojectitem.cpp | |
parent | fbee8695d7c477739455e9f67acf99f2b298b57d (diff) | |
download | qt-creator-8577347446bf508454220293ebc26872c79dc37f.tar.gz |
Add libraryPaths array to Project element (.qmlproject format)
Will be passed to qmlviewer with the "-L" option. Storing this in
the .qmlproject file format itself (and not in the .user file) is useful
in case the libraries are relative/part of the checkout that is shared
between users/computers.
Diffstat (limited to 'src/plugins/qmlprojectmanager/fileformat/qmlprojectitem.cpp')
-rw-r--r-- | src/plugins/qmlprojectmanager/fileformat/qmlprojectitem.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/plugins/qmlprojectmanager/fileformat/qmlprojectitem.cpp b/src/plugins/qmlprojectmanager/fileformat/qmlprojectitem.cpp index c765acffc1..6f0e1dcee8 100644 --- a/src/plugins/qmlprojectmanager/fileformat/qmlprojectitem.cpp +++ b/src/plugins/qmlprojectmanager/fileformat/qmlprojectitem.cpp @@ -9,6 +9,7 @@ class QmlProjectItemPrivate : public QObject { public: QString sourceDirectory; + QStringList libraryPaths; QList<QmlFileFilterItem*> qmlFileFilters() const; @@ -78,6 +79,23 @@ void QmlProjectItem::setSourceDirectory(const QString &directoryPath) emit sourceDirectoryChanged(); } +QStringList QmlProjectItem::libraryPaths() const +{ + const Q_D(QmlProjectItem); + return d->libraryPaths; +} + +void QmlProjectItem::setLibraryPaths(const QStringList &libraryPaths) +{ + Q_D(QmlProjectItem); + + if (d->libraryPaths == libraryPaths) + return; + + d->libraryPaths = libraryPaths; + emit libraryPathsChanged(); +} + /* Returns list of absolute paths */ QStringList QmlProjectItem::files() const { |