ShiftHandler: QSet → std::array [3/4]: noAutoUppercaseInputModeFilter


These QSets were never modified once constructed, and they were
constructed with a statically known number of entries, so they violate
the Golden Rule of Container Selection:

  Never use a dynamically-sized container for statically-sized data.

In addition, the entries were always the same, so there's no need for
them to be instance variables, they can be class variables^Wconstants
instead, and, since we're in a .cpp file, they can even be
file-static/constexpr.

Finally, there are a maximum of eight entries in these QSets, making
the use of a hashed container overkill. Linear search in a std::array
will be just as fast, if not faster.

So use the tiny wrapper around std::array that was added for
manualShiftLanguageFilter for noAutoUppercaseInputModeFilter, too.

As a drive-by, reorder the entries so they are sorted numerically, in
case we ever want to use binary search on them.

Amends 506d877b8b618caff34f9b71db12f17c7350c428 (5.6/"1.3").

Pick-to: 6.11 6.8
Change-Id: I53eaabfcfa0f8b1a0459752427986aec855dda53
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
commitfc787e284f1d38201f82d2ae8322100fc1afcabc
parenta420146e79922ea3e0adb079a11d6e425a5bb624
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeWed, 6 May 2026 22:38:19 +0000