Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.5, 6.7.1
-
-
c3a0c8ccc (dev), c53e1ff4d (6.8), a1068ca22 (6.7), 52b90c32c (tqtc/lts-6.5)
Description
Formatting qml code containing an enum with qmlformat removes enum values, as shown below.
//Before qmlformat code :
Rectangle{
enum AxisAlignment{
Bottom = 0,
Left = 1,
Right = 2
}
}
//After qml format code
Rectangle {
enum AxisAlignment {
Bottom,
Left,
Right
}
}
Attachments
For Gerrit Dashboard: QTBUG-125914 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
564933,8 | qmlformat: Do not remove the enum items' default value | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
566255,2 | qmlformat: Do not remove the enum items' default value | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
566320,3 | qmlformat: Do not remove the enum items' default value | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
566713,4 | qmlformat: Do not remove the enum items' default value | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |