diff --git a/src/Gui/NotificationArea.cpp b/src/Gui/NotificationArea.cpp index 93fbe07fd2..a93afef6a1 100644 --- a/src/Gui/NotificationArea.cpp +++ b/src/Gui/NotificationArea.cpp @@ -996,9 +996,9 @@ void NotificationArea::showInNotificationArea() getMainWindow(), pImp->notificationExpirationTime, pImp->minimumOnScreenTime, - NotificationBox::OnlyIfReferenceActive | - NotificationBox::RestrictAreaToReference | - NotificationBox::HideIfReferenceWidgetDeactivated, + NotificationBox::Options::OnlyIfReferenceActive | + NotificationBox::Options::RestrictAreaToReference | + NotificationBox::Options::HideIfReferenceWidgetDeactivated, pImp->notificationWidth); } } diff --git a/src/Gui/NotificationBox.h b/src/Gui/NotificationBox.h index 323f7ad448..c34483d675 100644 --- a/src/Gui/NotificationBox.h +++ b/src/Gui/NotificationBox.h @@ -49,7 +49,7 @@ class NotificationBox NotificationBox() = delete; public: - enum Options { + enum class Options { None = 0x0, RestrictAreaToReference = 0x1, OnlyIfReferenceActive = 0x2, @@ -100,6 +100,12 @@ inline NotificationBox::Options operator|(NotificationBox::Options lhs, Notifica static_cast::type>(rhs)); } +inline bool operator&(NotificationBox::Options lhs, NotificationBox::Options rhs) { + return ( + static_cast::type>(lhs) & + static_cast::type>(rhs)); +} + }// namespace Gui #endif// GUI_NOTIFICATIONBOX_H