- 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>
48 lines
770 B
C++
48 lines
770 B
C++
|
|
|
|
#pragma once
|
|
#include "EventTools.h"
|
|
|
|
#include <QHeaderView>
|
|
#include <QObject>
|
|
|
|
class QPainter;
|
|
|
|
namespace LtsTimelineClassic
|
|
{
|
|
|
|
class TimelineHeaderView : public QHeaderView
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit TimelineHeaderView(QWidget* parent = nullptr);
|
|
|
|
void refreshData();
|
|
void setLiveTime(qint64 time);
|
|
|
|
private:
|
|
qint64 m_posMarkTime;
|
|
QRect m_paintingRange;
|
|
|
|
qint64 m_liveTime;
|
|
|
|
protected:
|
|
void paintSection(QPainter* painter, const QRect& rect, int logicalIndex) const;
|
|
|
|
signals:
|
|
|
|
void signalSetPosMarkPos(int pos);
|
|
|
|
public slots:
|
|
|
|
void slotSectionResized(int logicalIndex, int oldSize, int newSize);
|
|
|
|
void setPosMarkTime(qint64 time);
|
|
|
|
private:
|
|
void setPosMarkPos();
|
|
};
|
|
|
|
} // namespace LtsTimelineClassic
|