Q*Permission: un-Q_GADGET classes w/o Q_ENUMs
We can always add it back later, but for now, it's pointless overhead (no Q_PROPERTYs, no Q_INVOCABLEs). Found in API review. Pick-to: 6.5 Change-Id: I1e30fbda997e6576a3e94cbae0387a3188c27728 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>bb10
parent
2d254afead
commit
c307cbea90
|
|
@ -33,8 +33,6 @@ class QCoreApplication;
|
|||
|
||||
class QPermission
|
||||
{
|
||||
Q_GADGET_EXPORT(Q_CORE_EXPORT)
|
||||
|
||||
template <typename T, typename Enable = void>
|
||||
static constexpr inline bool is_permission_v = false;
|
||||
|
||||
|
|
@ -75,7 +73,6 @@ private:
|
|||
};
|
||||
|
||||
#define QT_PERMISSION(ClassName) \
|
||||
Q_GADGET_EXPORT(Q_CORE_EXPORT) \
|
||||
using QtPermissionHelper = void; \
|
||||
friend class QPermission; \
|
||||
union U { \
|
||||
|
|
@ -100,6 +97,7 @@ private: \
|
|||
class QLocationPermissionPrivate;
|
||||
class QLocationPermission
|
||||
{
|
||||
Q_GADGET_EXPORT(Q_CORE_EXPORT)
|
||||
public:
|
||||
enum Accuracy : quint8 {
|
||||
Approximate,
|
||||
|
|
@ -132,6 +130,7 @@ Q_DECLARE_SHARED(QLocationPermission)
|
|||
class QCalendarPermissionPrivate;
|
||||
class QCalendarPermission
|
||||
{
|
||||
Q_GADGET_EXPORT(Q_CORE_EXPORT)
|
||||
public:
|
||||
enum AccessMode : quint8 {
|
||||
ReadOnly,
|
||||
|
|
@ -154,6 +153,7 @@ Q_DECLARE_SHARED(QCalendarPermission)
|
|||
class QContactsPermissionPrivate;
|
||||
class QContactsPermission
|
||||
{
|
||||
Q_GADGET_EXPORT(Q_CORE_EXPORT)
|
||||
public:
|
||||
enum AccessMode : quint8 {
|
||||
ReadOnly,
|
||||
|
|
|
|||
Loading…
Reference in New Issue