- 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>
33 lines
829 B
C++
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
|