diff options
author | Fawzi Mohamed <fawzi.mohamed@digia.com> | 2014-07-22 19:06:44 +0200 |
---|---|---|
committer | Fawzi Mohamed <fawzi.mohamed@digia.com> | 2014-07-30 15:07:35 +0200 |
commit | 02bdf30f458c0cdc19d1547e22029d41839e5100 (patch) | |
tree | 75e306de0dbcad10ac80c99dcb4dfa1bc4ad5be1 /src/plugins/qmljseditor/qmljseditor.cpp | |
parent | faa0e5b96cdda7fbcf383e1210e01858303ea168 (diff) | |
download | qt-creator-02bdf30f458c0cdc19d1547e22029d41839e5100.tar.gz |
qmljs: improve handling of qml dialects
Language::Enum -> QmlDialect
* class instead of enum
* moved Language specific operations to it (from Document)
* nicer handling
QStringList -> PathsAndLanguages
* store language along with path, to perform a correct scan and improve
path handling
Change-Id: If69d35c63cfeb48aa670b51870916cd0c40f1916
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Diffstat (limited to 'src/plugins/qmljseditor/qmljseditor.cpp')
-rw-r--r-- | src/plugins/qmljseditor/qmljseditor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmljseditor/qmljseditor.cpp b/src/plugins/qmljseditor/qmljseditor.cpp index 1b2c3ff137..51e656203d 100644 --- a/src/plugins/qmljseditor/qmljseditor.cpp +++ b/src/plugins/qmljseditor/qmljseditor.cpp @@ -232,7 +232,7 @@ void QmlJSTextEditorWidget::updateCodeWarnings(QmlJS::Document::Ptr doc) { if (doc->ast()) { setExtraSelections(CodeWarningsSelection, QList<QTextEdit::ExtraSelection>()); - } else if (Document::isFullySupportedLanguage(doc->language())) { + } else if (doc->language().isFullySupportedLanguage()) { // show parsing errors QList<QTextEdit::ExtraSelection> selections; appendExtraSelectionsForMessages(&selections, doc->diagnosticMessages(), document()); |