Details
-
Bug
-
Resolution: Cannot Reproduce
-
P3: Somewhat important
-
None
-
Qt Creator 3.3.0-beta1, Qt Creator 3.3.0-rc1
-
Windows 7 64 bit
Description
- Create a Qt Widgets Applications project.
- In Projects view, right-click the project's root node and select "Add New..." from the context menu.
- Add a C++-class derived from Q_Object.
- Add the line
Q_PROPERTY(QString foo READ foo WRITE setFoo NOTIFY fooChanged)
- Place your cursor at the end of that line and press Alt+Enter.
- Press Enter.
The inserted code is indented incorrectly. - Remove the inserted code.
- Remove the Q_OBJECT macro from the class.
- 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
- relates to
-
QTCREATORBUG-11413 Wrong indentation after expanded macro that contains semicolon
-
- Closed
-
- resulted from
-
QTCREATORBUG-13519 QuickFix crashes for creating missing property members
-
- Closed
-