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

On tst_qwebenginepage.cpp, indenting is sometimes wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4: Low
    • Qt Creator 4.9.0
    • Qt Creator 4.6.0-rc1
    • Editors
    • 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();
      

      Attachments

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

        Activity

          People

            yvvan Ivan Donchevskii
            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