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:
parent
184717e3a7
commit
5b7f8fa986
@ -326,3 +326,5 @@ QString QSystemSemaphore::errorString() const
|
||||
#endif // QT_CONFIG(systemsemaphore)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qsystemsemaphore.cpp"
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user