Qt namespace: add a Qt 7 note about enumerator order

LayoutDirectionAuto is the default in qguiapplication.cpp's
layout_direction. Because the numeric value isn't zero, it forces the
variable into the DATA segment instead of the more efficient BSS one.

At a less technical level, LayoutDirection{} should really produce the
default, Auto, instead of LeftToRight. APIs have been changed for
lesser violations of inclusivity :)

Change-Id: I06b42f0bc00ea539805280ef0aa9694e6d739f41
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Marc Mutz 2021-08-05 11:39:51 +02:00
parent d4e62f2c5a
commit f84adba102
1 changed files with 1 additions and 0 deletions

View File

@ -1460,6 +1460,7 @@ namespace Qt {
enum LayoutDirection {
LeftToRight,
RightToLeft,
// ### Qt 7: make auto the first one (with value 0)
LayoutDirectionAuto
};