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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • Qt Creator 3.3.0-beta1, Qt Creator 3.3.0-rc1
    • C/C++/Obj-C++ Support
    • Windows 7 64 bit

      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.

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

            kandeler Christian Kandeler
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes