Obviously, this code was never tested with a non-monolithic build,
and Qt didn't know how to handle our fancy enums.
Also, enum classes are now a thing since C++11, and we should use
them. Unfortunately, they have the same annoyances as nested classes
with Qt4-style signal/slot connections...