Remove magic number and hard type enums in BalloonPropEnum.h

- Remove currently present magic numbers
- Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers.
This commit is contained in:
Benjamin Bræstrup Sayoc
2025-02-02 22:26:17 +01:00
parent 351feb132a
commit a45e2ae8a4

View File

@@ -33,14 +33,16 @@
namespace TechDraw
{
enum BalloonType { Circular = 0,
None,
Triangle,
Inspection,
Hexagon,
Square,
Rectangle,
Line};
enum class BalloonType {
Circular = 0,
None,
Triangle,
Inspection,
Hexagon,
Square,
Rectangle,
Line
};
class TechDrawExport BalloonPropEnum {
Q_DECLARE_TR_FUNCTIONS(TechDraw::BalloonPropEnum)