625 struct S {
const char *prefix, *suffix; };
626 const auto affixes =
s.visit([](
auto s) {
627 using View =
decltype(
s);
628 if constexpr (std::is_same_v<View, QLatin1StringView>) {
630 }
else if constexpr (std::is_same_v<View, QUtf8StringView>) {
632 }
else if constexpr (std::is_same_v<View, QStringView>) {
640 if (
d.quoteStrings())
642 s.visit([&
d](
auto s) {
d <<
s; });
643 if (
d.quoteStrings())
Combined button and popup list for selecting options.
QDebug operator<<(QDebug d, QAnyStringView s)