forked from qt-creator/qt-creator
MIME database: Add support for attribut weight; Add magic matcher for byte patterns.
This affects how files are identified by the MIME database. Although this is a general improvement, it was triggered by the following bug report. Task-number: QTCREATORBUG-1793 Reviewed-by: Friedemann Kleint
This commit is contained in:
@@ -197,8 +197,8 @@ Core::GeneratedFiles GenericProjectWizard::generateFiles(const QWizard *w,
|
||||
Core::MimeType headerTy = mimeDatabase->findByType(QLatin1String("text/x-chdr"));
|
||||
|
||||
QStringList nameFilters;
|
||||
foreach (const QRegExp &rx, headerTy.globPatterns())
|
||||
nameFilters.append(rx.pattern());
|
||||
foreach (const Core::MimeGlobPattern &gp, headerTy.globPatterns())
|
||||
nameFilters.append(gp.regExp().pattern());
|
||||
|
||||
QStringList includePaths;
|
||||
foreach (const QString &path, paths) {
|
||||
|
||||
Reference in New Issue
Block a user