diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2025-12-01 07:14:53 +0100 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2025-12-01 19:29:06 +0100 |
| commit | bd3acba9b6308ee974fb1210cff2c0bdb74e8710 (patch) | |
| tree | b9d5a38072a764d6801a6696663e338557597817 /src/corelib/itemmodels/qrangemodel_impl.h | |
| parent | c61d900303c20750d67498b646e095669a890374 (diff) | |
One amending 4207a1664d6901322c19edddad95ec53bdd2a017, the other
amending c1341b7557ce52c681618c77c17687623fc0f3b2.
Pick-to: 6.10
Change-Id: Ib5db1a0728e359499a1a53d12a8157df7c3569e6
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/itemmodels/qrangemodel_impl.h')
| -rw-r--r-- | src/corelib/itemmodels/qrangemodel_impl.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/corelib/itemmodels/qrangemodel_impl.h b/src/corelib/itemmodels/qrangemodel_impl.h index 5ad7dd08059..96dacda0260 100644 --- a/src/corelib/itemmodels/qrangemodel_impl.h +++ b/src/corelib/itemmodels/qrangemodel_impl.h @@ -514,8 +514,12 @@ namespace QRangeModelDetails using row_type = typename range_traits<QRangeModelDetails::wrapped_t<Range>>::value_type; template <typename R = row_type, - std::enable_if_t<std::conjunction_v<std::is_destructible<wrapped_t<R>>, - is_owning_or_raw_pointer<R>>, bool> = true> + std::enable_if_t< + std::conjunction_v< + std::is_destructible<QRangeModelDetails::wrapped_t<R>>, + is_owning_or_raw_pointer<R> + >, + bool> = true> auto newRow() -> decltype(R(new QRangeModelDetails::wrapped_t<R>)) { if constexpr (is_any_of<R, std::shared_ptr>()) return std::make_shared<QRangeModelDetails::wrapped_t<R>>(); @@ -589,7 +593,7 @@ namespace QRangeModelDetails template <typename P, typename R> using protocol_mutable_childRows_test = decltype(refTo(std::declval<P&>() - .childRows(std::declval<wrapped_t<R>&>())) = {}); + .childRows(std::declval<QRangeModelDetails::wrapped_t<R>&>())) = {}); template <typename P, typename R> using protocol_mutable_childRows = qxp::is_detected<protocol_mutable_childRows_test, P, R>; |
