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
+42
-73
@@ -1,113 +1,82 @@
|
||||
|
||||
|
||||
|
||||
#pragma once
|
||||
#include <QObject>
|
||||
|
||||
#include "Event.h"
|
||||
#include "Item.h"
|
||||
#include "ltstimelineclassic_export.h"
|
||||
|
||||
#include <QAbstractItemModel>
|
||||
#include <NGLLogger/INGLLogger.h>
|
||||
|
||||
#include <QAbstractItemModel>
|
||||
#include <QObject>
|
||||
|
||||
namespace LtsTimelineClassic
|
||||
{
|
||||
|
||||
|
||||
|
||||
class LTSTIMELINECLASSIC_EXPORT AbstractTimelineModel : public QAbstractItemModel
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit AbstractTimelineModel( QObject *parent = nullptr);
|
||||
~AbstractTimelineModel();
|
||||
public:
|
||||
explicit AbstractTimelineModel(QObject* parent = nullptr);
|
||||
~AbstractTimelineModel();
|
||||
|
||||
void retranslate();
|
||||
void retranslate();
|
||||
|
||||
|
||||
Item* getRootItem();
|
||||
|
||||
Item *getRootItem();
|
||||
Event* getEvent(int uniqueId);
|
||||
|
||||
Event *getEvent(int uniqueId);
|
||||
void invalidateTimeline();
|
||||
|
||||
|
||||
void invalidateTimeline();
|
||||
void refreshData();
|
||||
|
||||
|
||||
qint64 highestPositionedItem() const
|
||||
{
|
||||
return m_highestPositionedItem;
|
||||
}
|
||||
|
||||
void refreshData();
|
||||
qint64 lowestPositionedItem() const
|
||||
{
|
||||
return m_lowestPositionedItem;
|
||||
}
|
||||
|
||||
qint64 highestPositionedItem() const { return m_highestPositionedItem; }
|
||||
qint64 lowestPositionedItem() const { return m_lowestPositionedItem; }
|
||||
protected:
|
||||
NGL::INGLLogger& m_logger;
|
||||
|
||||
protected:
|
||||
void addEvent(Event* event);
|
||||
|
||||
protected:
|
||||
QVariant data(const QModelIndex& index, int role) const;
|
||||
|
||||
Qt::ItemFlags flags(const QModelIndex& index) const;
|
||||
|
||||
NGL::INGLLogger &m_logger;
|
||||
protected:
|
||||
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
|
||||
|
||||
void addEvent(Event *event);
|
||||
Item* itemFromIndex(const QModelIndex& idx) const;
|
||||
|
||||
|
||||
QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const;
|
||||
|
||||
QVariant data(const QModelIndex &index, int role) const;
|
||||
QModelIndex parent(const QModelIndex& index) const;
|
||||
|
||||
|
||||
int rowCount(const QModelIndex& parent = QModelIndex()) const;
|
||||
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const;
|
||||
int columnCount(const QModelIndex& parent = QModelIndex()) const;
|
||||
|
||||
|
||||
virtual qint64 currentTime() const = 0;
|
||||
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
|
||||
qint64 m_highestPositionedItem;
|
||||
qint64 m_lowestPositionedItem;
|
||||
bool m_getEventListsRecursive;
|
||||
Item* m_rootItem;
|
||||
Item* m_markersItem;
|
||||
|
||||
|
||||
signals:
|
||||
|
||||
Item *itemFromIndex(const QModelIndex &idx) const;
|
||||
void signalContextMenu(const QPoint& position, Event* affectedEvent);
|
||||
|
||||
|
||||
|
||||
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
|
||||
|
||||
|
||||
|
||||
QModelIndex parent(const QModelIndex &index) const;
|
||||
|
||||
|
||||
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||
|
||||
|
||||
|
||||
int columnCount(const QModelIndex &parent = QModelIndex()) const;
|
||||
|
||||
|
||||
virtual qint64 currentTime() const = 0;
|
||||
|
||||
|
||||
qint64 m_highestPositionedItem;
|
||||
qint64 m_lowestPositionedItem;
|
||||
bool m_getEventListsRecursive;
|
||||
Item *m_rootItem;
|
||||
Item *m_markersItem;
|
||||
|
||||
|
||||
signals:
|
||||
|
||||
|
||||
void signalContextMenu(const QPoint &position, Event *affectedEvent);
|
||||
|
||||
|
||||
|
||||
void signalClicked(Event *affectedEvent);
|
||||
|
||||
|
||||
void signalToolTip(const QPoint &p, Event *e);
|
||||
void signalClicked(Event* affectedEvent);
|
||||
|
||||
void signalToolTip(const QPoint& p, Event* e);
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace LtsTimelineClassic
|
||||
Reference in new issue
Block a user