Commit 2f5bae02 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlProjectManager: Fix support for Files



Change-Id: I7b6931eb193aca446bc7936f003c5a2f5e41c7f6
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent 0b146604
......@@ -55,6 +55,10 @@ void setupFileFilterItem(QmlProjectManager::FileFilterBaseItem *fileFilterItem,
if (pathsProperty.isValid())
fileFilterItem->setPathsProperty(pathsProperty.toStringList());
const QVariant filterProperty = node->property(QLatin1String("filter"));
if (filterProperty.isValid())
fileFilterItem->setFilter(filterProperty.toString());
if (debug)
qDebug() << "directory:" << directoryProperty << "recursive" << recursiveProperty << "paths" << pathsProperty;
}
......@@ -117,6 +121,12 @@ QmlProjectItem *QmlProjectFileFormat::parseProjectFile(const QString &fileName,
CssFileFilterItem *cssFileFilterItem = new CssFileFilterItem(projectItem);
setupFileFilterItem(cssFileFilterItem, childNode);
projectItem->appendContent(cssFileFilterItem);
} else if (childNode->name() == QLatin1String("Files")) {
if (debug)
qDebug() << "Files";
OtherFileFilterItem *otherFileFilterItem = new OtherFileFilterItem(projectItem);
setupFileFilterItem(otherFileFilterItem, childNode);
projectItem->appendContent(otherFileFilterItem);
} else {
qWarning() << "Unknown type:" << childNode->name();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment