KformatPrivate: fix deprecation enum arithmetic with float
Warning of the form: Arithmetic between enumeration type 'TimeConstants' and floating-point type 'double' is deprecated
A simple '+' operator allows to quickly convert the enum to int.
Some more context: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2864r0.pdf