Commit 1bb0a7f1 authored by Friedemann Kleint's avatar Friedemann Kleint Committed by Kai Koehne

Fix compilation with Qt 5.

Q_GLOBAL_STATIC_WITH_INITIALIZER was removed.

Change-Id: Ie030f2fa66c97ae1bfd8ede95c573453a7f03d2a
Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
parent b53d398e
......@@ -42,11 +42,13 @@
namespace QmlProjectManager {
namespace Internal {
Q_GLOBAL_STATIC_WITH_INITIALIZER(QStringList, binaryFiles, {
x->append(QLatin1String("png"));
x->append(QLatin1String("jpg"));
x->append(QLatin1String("jpeg"));
})
static QStringList binaryFiles()
{
static QStringList result;
if (result.isEmpty())
result << QLatin1String("png") << QLatin1String("jpg") << QLatin1String("jpeg");
return result;
}
QString QmlApp::templateRootDirectory()
{
......@@ -393,7 +395,7 @@ Core::GeneratedFiles QmlApp::generateFiles(QString *errorMessage)
targetFileName = renameQmlFile(templateFile.fileName());
}
if (binaryFiles()->contains(templateFile.suffix())) {
if (binaryFiles().contains(templateFile.suffix())) {
bool canAddBinaryFile = addBinaryFile(templateFile.absolutePath(),
templateFile.fileName(),
targetDirectory,
......
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