Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-19773

On tst_qwebenginepage.cpp, indenting is sometimes wrong

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Fixed
    • Affects Version/s: Qt Creator 4.6.0-rc1
    • Fix Version/s: Qt Creator 4.9.0
    • Component/s: Editors
    • Labels:
      None
    • Environment:
      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();
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              yvvan Ivan Donchevskii
              Reporter:
              viengelm Viktor Engelmann
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes