1- #ifndef RADIUMENGINE_KEYFRAME_EDITOR_FRAME_H
2- #define RADIUMENGINE_KEYFRAME_EDITOR_FRAME_H
1+ #pragma once
32
43#include < QDoubleSpinBox>
54#include < QFrame>
@@ -182,17 +181,17 @@ class KeyFrameEditorFrame : public QFrame
182181
183182 private:
184183 // / The currently edited KeyFramedValue.
185- KeyFrame* m_value{nullptr };
184+ KeyFrame* m_value {nullptr };
186185
187186 // / The current time of the Timeline's playzone.
188- Scalar m_cursor;
187+ Scalar m_cursor {0_ra} ;
189188
190189 // / The display state of the KeyFramed value channels.
191- std::array<bool , 10 > m_displayCurve =
192- {true , true , true , true , true , true , true , true , true , true };
190+ std::array<bool , 10 >
191+ m_displayCurve {true , true , true , true , true , true , true , true , true , true };
193192
194193 // / Whether the user is editing values or not.
195- bool m_mouseLeftClicked{false };
194+ bool m_mouseLeftClicked {false };
196195
197196 // / The type for KeyFramedValue edition control points.
198197 using CurveControlPoints = std::vector<Ra::Core::Vector2>;
@@ -201,15 +200,13 @@ class KeyFrameEditorFrame : public QFrame
201200 std::array<CurveControlPoints, 10 > m_curveControlPoints;
202201
203202 // / The current control point.
204- Ra::Core::Vector2i m_currentControlPoint{-1 , -1 };
203+ Ra::Core::Vector2i m_currentControlPoint {-1 , -1 };
205204
206205 // / The QPainter to display all the data.
207- QPainter* m_painter{nullptr };
206+ QPainter* m_painter {nullptr };
208207
209208 // / The KeyFrameEditor UI.
210- Ui::KeyFrameEditor* m_ui{nullptr };
209+ Ui::KeyFrameEditor* m_ui {nullptr };
211210};
212211
213212} // namespace Ra::GuiBase
214-
215- #endif // RADIUMENGINE_KEYFRAME_EDITOR_FRAME_H
0 commit comments