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
+19
-28
@@ -1,16 +1,13 @@
|
||||
|
||||
|
||||
|
||||
#include "item.h"
|
||||
|
||||
#include <QBrush>
|
||||
#include <QPen>
|
||||
#include <QPainter>
|
||||
#include <QStyleOptionViewItem>
|
||||
#include <QModelIndex>
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
#include <QModelIndex>
|
||||
#include <QPainter>
|
||||
#include <QPen>
|
||||
#include <QStyleOptionViewItem>
|
||||
|
||||
namespace LtsTimeline
|
||||
{
|
||||
@@ -19,27 +16,21 @@ QString Item::mimetype = QStringLiteral("application/rheinmetall.timeline.item")
|
||||
|
||||
QColor Item::s_highlightColor = QRgb(0x43b0e0);
|
||||
|
||||
|
||||
Item::Item(qint64 startTime, int duration, const QColor &color, bool isEditable)
|
||||
: m_color(color)
|
||||
, m_startTime(startTime)
|
||||
, m_duration(duration)
|
||||
, m_isEditable(isEditable)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
|
||||
void Item::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &, bool highlight) const
|
||||
Item::Item(qint64 startTime, int duration, const QColor& color, bool isEditable)
|
||||
: m_color(color), m_startTime(startTime), m_duration(duration), m_isEditable(isEditable)
|
||||
{
|
||||
painter->save();
|
||||
if (highlight)
|
||||
painter->setPen(QPen(QBrush(s_highlightColor), 5));
|
||||
else
|
||||
painter->setPen(QPen(QBrush(Qt::black), 1));
|
||||
painter->setBrush(QBrush(m_color));
|
||||
painter->drawRect(option.rect);
|
||||
painter->restore();
|
||||
}
|
||||
|
||||
}
|
||||
void Item::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex&, bool highlight) const
|
||||
{
|
||||
painter->save();
|
||||
if (highlight)
|
||||
painter->setPen(QPen(QBrush(s_highlightColor), 5));
|
||||
else
|
||||
painter->setPen(QPen(QBrush(Qt::black), 1));
|
||||
painter->setBrush(QBrush(m_color));
|
||||
painter->drawRect(option.rect);
|
||||
painter->restore();
|
||||
}
|
||||
|
||||
} // namespace LtsTimeline
|
||||
Reference in new issue
Block a user