Invert enum to be castable from QDialog