- 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>
41 lines
980 B
C++
41 lines
980 B
C++
|
|
|
|
#pragma once
|
|
#include "ltstimeline_export.h"
|
|
|
|
#include <QObject>
|
|
#include <QPushButton>
|
|
#include <QStyledItemDelegate>
|
|
|
|
namespace LtsTimeline
|
|
{
|
|
|
|
class TimelineView;
|
|
class TimelineModel;
|
|
|
|
class LTSTIMELINE_EXPORT ItemDelegate : public QStyledItemDelegate
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
ItemDelegate(TimelineView* parent = nullptr);
|
|
~ItemDelegate();
|
|
|
|
QSize sizeHint(const QStyleOptionViewItem& option = {}, const QModelIndex& index = {}) const override;
|
|
|
|
virtual void paintDragItems(QPainter* painter) const;
|
|
virtual void paintTrackButtons(QPainter* painter, const QStyleOptionViewItem& option,
|
|
const QModelIndex& index) const;
|
|
|
|
protected:
|
|
virtual void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const override;
|
|
|
|
protected:
|
|
TimelineView* m_view{nullptr};
|
|
|
|
QPushButton* m_pushButton{nullptr};
|
|
QPushButton* m_pushButtonPressed{nullptr};
|
|
};
|
|
|
|
} // namespace LtsTimeline
|