Unfortunately Q_DECLARE_FLAGS is a macro that expands into a typedef, so it can't work on private enums.  Leave as is?