diff options
author | Uladzislau Paulovich <selatnick@gmail.com> | 2019-06-09 00:32:44 +0300 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@qt.io> | 2019-06-12 13:35:11 +0000 |
commit | 798879c797f0e1ea42e78f4f1f56532e691f20c1 (patch) | |
tree | 15f6a5b63afd52f4cdbba4dae17eb1e92891c6b6 /src/libs | |
parent | 36135aa26174c2ebf6dec213a469e671e67b2cfb (diff) | |
download | qt-creator-798879c797f0e1ea42e78f4f1f56532e691f20c1.tar.gz |
qml | Fix pragma reformatting
After this change reformatter test (tests/auto/qml/reformatter/tst_reformatter)
starts to work correctly for singleton example (qmlsingleton.qml)
NOTE: Just cherry-picking change from master branch.
Change-Id: Ia0561aa8b920fc5c62a8dea93341721f37b68dd8
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
(cherry picked from commit 749eaaad81145072181a42aaf007ada71816cf3b)
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/libs')
-rw-r--r-- | src/libs/qmljs/qmljsreformatter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/qmljs/qmljsreformatter.cpp b/src/libs/qmljs/qmljsreformatter.cpp index 5a5254fe26..b2bb503d22 100644 --- a/src/libs/qmljs/qmljsreformatter.cpp +++ b/src/libs/qmljs/qmljsreformatter.cpp @@ -537,6 +537,8 @@ protected: bool visit(UiPragma *ast) override { out("pragma ", ast->pragmaToken); + out(ast->name.toString()); + newLine(); return false; } |