Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Common/LtsScriptTimeline/track_drag_handler.h
T
torstenandCopilot d6b6ffce7c Apply clang-format to Lts/Common and DTC/enum headers
- Formatted all CodeGen module files (9 files)
- Formatted LtsAppDescriptor module files
- Formatted LtsAppManager/AppChooser files
- Applied clang-format to all DTC and enum headers across modules
- Removed coordTransTests from CommonUnitTestsPlaceholder (moved to tests/)

Cosmetic changes only, no functional modifications.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-19 14:46:29 +02:00

33 lines
829 B
C++

#pragma once
#include "ltsscripttimeline_export.h"
#include <QWidget>
namespace LtsScriptTimeline
{
class TrackContentWidget;
class TrackEntry;
class LTSSCRIPTTIMELINE_EXPORT DragHandler
{
public:
explicit DragHandler(TrackContentWidget* _tcw) : m_tcw(_tcw), m_dropPos(-1) {}
void dragEnterEvent(QDragEnterEvent* event);
void dragLeaveEvent(QDragLeaveEvent* event);
void dropEvent(QDropEvent* event);
void dragMoveEvent(QDragMoveEvent* event);
void mousePressEvent(QMouseEvent* event);
void mouseMoveEvent(QMouseEvent* event);
void keyPressEvent(QKeyEvent* event);
TrackContentWidget* m_tcw;
QVector<TrackContentWidget*> m_tcwCorresponding;
QPoint m_dragStartPos;
QVector<TrackEntry*> m_vecCollisions, m_vecParallel;
int m_dropPos;
};
} // namespace LtsScriptTimeline