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

Wrong indentation after quickfix "Generate Missing Q_PROPERTY Members..."

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 3.3.0-beta1, Qt Creator 3.3.0-rc1
    • Fix Version/s: None
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None
    • Environment:
      Windows 7 64 bit

      Description

      1. Create a Qt Widgets Applications project.
      2. In Projects view, right-click the project's root node and select "Add New..." from the context menu.
      3. Add a C++-class derived from Q_Object.
      4. Add the line
        Q_PROPERTY(QString foo READ foo WRITE setFoo NOTIFY fooChanged)
        
      5. Place your cursor at the end of that line and press Alt+Enter.
      6. Press Enter.
        The inserted code is indented incorrectly.
      7. Remove the inserted code.
      8. Remove the Q_OBJECT macro from the class.
      9. Repeat steps 5 and 6.
        The inserted code is indented correctly.

      Automatically generated code should always be indented correctly. Maybe this is related to QTCREATORBUG-11413 although I can't reproduce that one in 3.3.

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                kosjar Nikolai Kosjar
                Reporter:
                rlohning Robert Löhning
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes