Closed oharboe closed 3 weeks ago
clang-tidy review says "All clean, LGTM! :+1:"
@maliberty Possible future refinement, use QMetaEnum, since there is a dependency on Qt anyway?
QMetaEnum might help reduce brittle unqiue solutions within each module to deal with enums and make the code easier to read as there is a lot of implicit documentation in using QMetaEnum to e.g. translate from enum to string, get count of enums and such.
Q_ENUM could be used (though only in gui).
there's no great way in C++ to get the maximum value/count for an enum, but at least it's no longer hardcoded if new columns are added.
The "End" column was hidden since there was a gaffe when adding End and not updating the hardcoded count of the enum everywhere: