diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2021-08-05 11:39:51 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2021-08-06 18:11:37 +0200 |
commit | f84adba1023d019e54d82b1479d9b8d33eff6729 (patch) | |
tree | e5965db6e6427ed8ff6ed9a7b25d8b47dc5c21c1 /src/corelib/global | |
parent | d4e62f2c5a0f7e2e47d3bdfd570094862b1c05c1 (diff) |
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>
Diffstat (limited to 'src/corelib/global')
-rw-r--r-- | src/corelib/global/qnamespace.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h index 48bbba655e..6052234545 100644 --- a/src/corelib/global/qnamespace.h +++ b/src/corelib/global/qnamespace.h @@ -1460,6 +1460,7 @@ namespace Qt { enum LayoutDirection { LeftToRight, RightToLeft, + // ### Qt 7: make auto the first one (with value 0) LayoutDirectionAuto }; |