QCoreApplication::requestPermissions: honor QT_NO_CONTEXTLESS_CONNECT
Hide the overload that doesn't take a context object. Change-Id: Ibf8a46ad514b00be855be6fd7c72d6464881bb25 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
552dc1ecfe
commit
30be644053
@ -142,6 +142,7 @@ public:
|
||||
}
|
||||
# endif // Q_QDOC
|
||||
|
||||
#ifndef QT_NO_CONTEXTLESS_CONNECT
|
||||
// requestPermission to a functor or function pointer (without context)
|
||||
template <typename Functor,
|
||||
std::enable_if_t<
|
||||
@ -151,6 +152,7 @@ public:
|
||||
{
|
||||
requestPermission(permission, nullptr, std::forward<Functor>(func));
|
||||
}
|
||||
#endif // QT_NO_CONTEXTLESS_CONNECT
|
||||
|
||||
private:
|
||||
// ### Qt 7: rename to requestPermissionImpl to avoid ambiguity
|
||||
|
Loading…
x
Reference in New Issue
Block a user