diff options
author | Leandro Melo <leandro.melo@nokia.com> | 2010-09-13 16:26:16 +0200 |
---|---|---|
committer | Leandro Melo <leandro.melo@nokia.com> | 2010-09-13 16:45:21 +0200 |
commit | 463488f7d7d6ac0c11740a4dd9f3b84e284f9c06 (patch) | |
tree | 90abf8f4941e7b571cc3afd1175f6bf10fa7573f /src/plugins/qmljseditor/qmljsmodelmanager.cpp | |
parent | 8ea7389ca80d76cfae491c22c36cc6ec48314966 (diff) | |
download | qt-creator-463488f7d7d6ac0c11740a4dd9f3b84e284f9c06.tar.gz |
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
Diffstat (limited to 'src/plugins/qmljseditor/qmljsmodelmanager.cpp')
-rw-r--r-- | src/plugins/qmljseditor/qmljsmodelmanager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/qmljseditor/qmljsmodelmanager.cpp b/src/plugins/qmljseditor/qmljsmodelmanager.cpp index 2de3c60c76..e4bf78f5eb 100644 --- a/src/plugins/qmljseditor/qmljsmodelmanager.cpp +++ b/src/plugins/qmljseditor/qmljsmodelmanager.cpp @@ -244,10 +244,10 @@ static QStringList qmlFilesInDirectory(const QString &path) Core::MimeType qmlSourceTy = db->findByType(QmlJSEditor::Constants::QML_MIMETYPE); QStringList pattern; - foreach (const QRegExp &glob, jsSourceTy.globPatterns()) - pattern << glob.pattern(); - foreach (const QRegExp &glob, qmlSourceTy.globPatterns()) - pattern << glob.pattern(); + foreach (const Core::MimeGlobPattern &glob, jsSourceTy.globPatterns()) + pattern << glob.regExp().pattern(); + foreach (const Core::MimeGlobPattern &glob, qmlSourceTy.globPatterns()) + pattern << glob.regExp().pattern(); QStringList files; |