indicators: Use enum class for the type

This commit is contained in:
Sergio Martins
2020-08-22 19:16:24 +01:00
parent 32592f6ad1
commit 7fdca76a4c
2 changed files with 5 additions and 5 deletions

View File

@@ -28,10 +28,10 @@ class DOCKS_EXPORT_FOR_UNIT_TESTS DropIndicatorOverlayInterface : public QWidget
Q_PROPERTY(QRect hoveredFrameRect READ hoveredFrameRect NOTIFY hoveredFrameRectChanged)
Q_PROPERTY(KDDockWidgets::DropIndicatorOverlayInterface::DropLocation currentDropLocation READ currentDropLocation NOTIFY currentDropLocationChanged)
public:
enum Type {
TypeNone = 0,
TypeClassic = 1,
TypeAnimated = 2
enum class Type {
None = 0,
Classic = 1,
Animated = 2
};
Q_ENUM(Type)