diff options
| author | Marc Mutz <marc.mutz@kdab.com> | 2020-05-04 18:21:29 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@kdab.com> | 2020-05-05 15:34:15 +0200 |
| commit | 46a1cf915096ab056ad3bfd1d42fd504c04763cd (patch) | |
| tree | 6cb86dc4ea455dfd48721a744c0e79b087b7956c /src/tools/uic/cpp/cppwriteinitialization.cpp | |
| parent | 8ad1643895f3f7fc60198b978e47454c3738f0fa (diff) | |
| download | qtbase-46a1cf915096ab056ad3bfd1d42fd504c04763cd.tar.gz | |
Long live QHVContainer!
Various places in Qt use arrays indexed by some function of
Qt::Orientation input. None document their dependence on the numerical
values of the Qt::Orientation enum, some waste space, none is
type-safe.
QHVContainer is a private container of two values, one for
Qt::Horizontal and one for Qt::Vertical. Its salient API is the
indexing operator, taking Qt::Orientation, thus making the class
type-safe.
Use it to port QGridLayoutItem and QAbstractScrollAreaPrivate.
Change-Id: I0d9f17431a5eb141bfb0763c83155710bb82a537
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/tools/uic/cpp/cppwriteinitialization.cpp')
0 files changed, 0 insertions, 0 deletions
