forked from qt-creator/qt-creator
Fix compilation of tests/tools/qml-ast2dot.
Change-Id: I192c8f218371bd45c5bc2ae2cbb1b4464b7f0956 Reviewed-by: Bill King <bill.king@nokia.com>
This commit is contained in:
committed by
Bill King
parent
ba23e21d87
commit
eebb138d45
@@ -338,9 +338,9 @@ int main(int argc, char *argv[])
|
||||
const QByteArray source = file.readAll();
|
||||
file.close();
|
||||
|
||||
Document::Ptr doc = Document::create(fileName);
|
||||
Document::Ptr doc = Document::create(fileName, Document::QmlLanguage);
|
||||
doc->setSource(source);
|
||||
doc->parseQml();
|
||||
doc->parse();
|
||||
|
||||
foreach (const DiagnosticMessage &m, doc->diagnosticMessages()) {
|
||||
ostream *os;
|
||||
|
||||
Reference in New Issue
Block a user