QSystemSemaphore: make it a Q_GADGET

So we can have Q_ENUM.

Change-Id: If4c23ea3719947d790d4fffd17152a37d0fe551b
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
Thiago Macieira 2022-09-15 15:47:36 -07:00
parent 184717e3a7
commit 5b7f8fa986
2 changed files with 4 additions and 0 deletions

View File

@ -326,3 +326,5 @@ QString QSystemSemaphore::errorString() const
#endif // QT_CONFIG(systemsemaphore)
QT_END_NAMESPACE
#include "moc_qsystemsemaphore.cpp"

View File

@ -17,6 +17,7 @@ class QSystemSemaphorePrivate;
class Q_CORE_EXPORT QSystemSemaphore
{
Q_GADGET
Q_DECLARE_TR_FUNCTIONS(QSystemSemaphore)
public:
enum AccessMode
@ -24,6 +25,7 @@ public:
Open,
Create
};
Q_ENUM(AccessMode)
enum SystemSemaphoreError
{