Continues migration with DDS, Common
This commit is contained in:
1 parent
9b15cee841
commit
fa48db111e
668 files changed
+111841
-2
No files matched your search
+63
@@ -0,0 +1,63 @@
|
||||
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "EventTools.h"
|
||||
|
||||
#include <QHeaderView>
|
||||
|
||||
|
||||
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();
|
||||
};
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user