TrackViewTimeline.h 892 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include "Controls/TimelineCtrl.h"
  10. namespace TrackView
  11. {
  12. /** A customized timeline widget for CTrackViewGraph.
  13. */
  14. class CTrackViewTimelineWidget
  15. : public TimelineWidget
  16. {
  17. public:
  18. CTrackViewTimelineWidget(QWidget* parent = nullptr)
  19. : TimelineWidget(parent)
  20. , m_stashedRecordModeWhileTimeDragging(false) {};
  21. virtual ~CTrackViewTimelineWidget() = default;
  22. protected:
  23. void mousePressEvent(QMouseEvent* event) override;
  24. void mouseReleaseEvent(QMouseEvent* event) override;
  25. private:
  26. bool m_stashedRecordModeWhileTimeDragging;
  27. };
  28. } // namespace TrackView