summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Qt3DStudio/Palettes/TimelineGraphicsView/RowTypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Authoring/Qt3DStudio/Palettes/TimelineGraphicsView/RowTypes.h')
-rw-r--r--src/Authoring/Qt3DStudio/Palettes/TimelineGraphicsView/RowTypes.h24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/Authoring/Qt3DStudio/Palettes/TimelineGraphicsView/RowTypes.h b/src/Authoring/Qt3DStudio/Palettes/TimelineGraphicsView/RowTypes.h
index c567c7db..faeeae68 100644
--- a/src/Authoring/Qt3DStudio/Palettes/TimelineGraphicsView/RowTypes.h
+++ b/src/Authoring/Qt3DStudio/Palettes/TimelineGraphicsView/RowTypes.h
@@ -31,17 +31,23 @@
#include <qglobal.h>
-enum class TimelineControlType {
- None,
- KeyFrame,
- Duration,
- DurationStartHandle,
- DurationEndHandle,
- BezierKeyframe,
- BezierInHandle,
- BezierOutHandle
+enum class TimelineControlType : int {
+ None = 0x00,
+ KeyFrame = 0x01,
+ Duration = 0x02,
+ DurationStartHandle = 0x04,
+ DurationEndHandle = 0x08,
+ BezierKeyframe = 0x10,
+ BezierInHandle = 0x20,
+ BezierOutHandle = 0x40,
+ IsBezierControl = BezierKeyframe | BezierInHandle | BezierOutHandle
};
+inline int operator &(TimelineControlType lhs, TimelineControlType rhs)
+{
+ return int(lhs) & int(rhs);
+}
+
enum class TreeControlType {
None,
Arrow,