Verified Commit 367ee350 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

GIT_SILENT Add trailing commas

This will lead to cleaner diffs and preserve the linebreaks when
formatting the code with clang-format.
parent cc915efb
......@@ -109,7 +109,7 @@ public:
IconOnly,
TextOnly,
TextBesideIcon,
TextUnderIcon
TextUnderIcon,
};
Q_ENUM(Display)
......
......@@ -58,7 +58,7 @@ void PaintedSymbolItem::paint(QPainter *painter)
QVector<QPointF> points = {
QPointF(0 + penOffset, height/2.0 + penOffset),
QPointF(width/3.0, height/1.2), //height * (5/6)
QPointF(width - penOffset, height/6.0 + penOffset)
QPointF(width - penOffset, height/6.0 + penOffset),
};
painter->drawPolyline(points);
......@@ -86,7 +86,7 @@ void PaintedSymbolItem::paint(QPainter *painter)
QVector<QPointF> points = {
QPointF(width/1.5 - penOffset, 0 + penOffset),
QPointF(width/4.0, height/2),
QPointF(width/1.5 - penOffset, height - penOffset)
QPointF(width/1.5 - penOffset, height - penOffset),
};
painter->drawPolyline(points);
......@@ -114,7 +114,7 @@ void PaintedSymbolItem::paint(QPainter *painter)
QVector<QPointF> points = {
QPointF(width/3/* + penOffset*/, 0/* + penOffset*/),
QPointF(width*0.75, height/2),
QPointF(width/3/* + penOffset*/, height/* - penOffset*/)
QPointF(width/3/* + penOffset*/, height/* - penOffset*/),
};
painter->drawPolyline(points);
......@@ -142,7 +142,7 @@ void PaintedSymbolItem::paint(QPainter *painter)
QVector<QPointF> points = {
QPointF(0 - penOffset, height*0.75),
QPointF(width/2.0, height/4 - penOffset),
QPointF(width + penOffset, height*0.75)
QPointF(width + penOffset, height*0.75),
};
painter->drawPolyline(points);
......@@ -170,7 +170,7 @@ void PaintedSymbolItem::paint(QPainter *painter)
QVector<QPointF> points = {
QPointF(0 - penOffset, height/4 ),
QPointF(width/2.0, height*0.75 + penOffset),
QPointF(width + penOffset, height/4)
QPointF(width + penOffset, height/4),
};
painter->drawPolyline(points);
......
......@@ -38,7 +38,7 @@ public:
UpArrow,
DownArrow,
NSymbolTypes, // Only used to access the total number of symbol types
None = USHRT_MAX
None = USHRT_MAX,
};
Q_ENUM(SymbolType)
......
......@@ -29,7 +29,7 @@ public:
{QPointF(1.0/1.5, 0.0), QPointF(0.25, 0.5), QPointF(1.0/1.5, 1.0)}, //LeftArrow
{QPointF(1.0/3.0, 0.0), QPointF(0.75, 0.5), QPointF(1.0/3.0, 1.0)}, //RightArrow
{QPointF(0.0, 1.0/1.5), QPointF(0.5, 0.25), QPointF(1.0, 1.0/1.5)}, //UpArrow
{QPointF(0.0, 1.0/3.0), QPointF(0.5, 0.75), QPointF(1.0, 1.0/3.0)} //DownArrow
{QPointF(0.0, 1.0/3.0), QPointF(0.5, 0.75), QPointF(1.0, 1.0/3.0)}, //DownArrow
};
};
#endif
......@@ -23,7 +23,7 @@ public:
HeightResolved = 0x0008,
ColorResolved = 0x0010,
CacheResolved = 0x0020,
AllPropertiesResolved = 0x1ffff
AllPropertiesResolved = 0x1ffff,
};
// This is based on QFont's resolve_mask.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment