Details
-
Bug
-
Resolution: Fixed
-
P4: Low
-
Qt Creator 4.6.0-rc1
-
None
-
Linux Mint 18.3, Kernel 4.13.0-32-generic, KDE Plasma 5
Qt Creator 4.6.0-rc1, built against & running on Qt 5.9.4
Description
When I load qtwebengine.pri and open qt5/qtwebengine/tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp and press <return> on tst_QWebEnginePage::elementCenter or any subsequent methods' opening curly-brace, the new line is indented with 25 spaces (or 21 on tst_QWebEnginePage::proxyConfigWithUnexpectedHostPortPair) instead of 4.
This also happens on the code lines within the methods. It also messes up copy-n-pasted code.
I have seen similar problems within complex string constructions, for example on any (except the last) of these lines (but not on lines before them):
... responseBody = (QStringLiteral( "<s:Envelope>" "<s:Body>" "<u:") + actionName + "Response>" "</u:" + actionName + "Response>" "</s:Body>" "</s:Envelope>").toUtf8();