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>
This commit is contained in:
848 files changed
+89305
-100020
No files matched your search
Executable → Regular
+18
-34
@@ -1,56 +1,40 @@
|
||||
|
||||
|
||||
|
||||
#pragma once
|
||||
#include <QObject>
|
||||
|
||||
#include "AbstractTimelineModel.h"
|
||||
#include "Range.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QStyledItemDelegate>
|
||||
|
||||
|
||||
namespace LtsTimelineClassic
|
||||
{
|
||||
|
||||
|
||||
|
||||
class EventDelegate : public QStyledItemDelegate
|
||||
class EventDelegate : public QStyledItemDelegate
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
public:
|
||||
EventDelegate(QWidget* parent = nullptr);
|
||||
void setKnownRanges(const QVector<Range>& knownRanges);
|
||||
|
||||
EventDelegate(QWidget *parent = nullptr);
|
||||
void setKnownRanges(const QVector<Range> &knownRanges);
|
||||
QSize sizeHint(const QStyleOptionViewItem& option = QStyleOptionViewItem(),
|
||||
const QModelIndex& index = QModelIndex()) const;
|
||||
|
||||
|
||||
void setLiveTime(qint64 liveTime);
|
||||
|
||||
QSize sizeHint(const QStyleOptionViewItem &option = QStyleOptionViewItem(), const QModelIndex &index = QModelIndex()) const;
|
||||
private:
|
||||
void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const;
|
||||
|
||||
void setLiveTime(qint64 liveTime);
|
||||
private:
|
||||
|
||||
LineMap m_lineMap;
|
||||
QVector<Range> m_knownRanges;
|
||||
qint64 m_liveTime;
|
||||
|
||||
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
public slots:
|
||||
|
||||
|
||||
void slotResetLineList();
|
||||
|
||||
|
||||
|
||||
LineMap m_lineMap;
|
||||
QVector<Range> m_knownRanges;
|
||||
qint64 m_liveTime;
|
||||
|
||||
public slots:
|
||||
|
||||
|
||||
void slotResetLineList();
|
||||
|
||||
|
||||
|
||||
void slotAddLine(int posX, qint64 time);
|
||||
void slotAddLine(int posX, qint64 time);
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace LtsTimelineClassic
|
||||
Reference in new issue
Block a user