Transition enums from Qt's QFlags to C++11 type-safe enum class