CCustomDelegate: Ensure all members of SDelegateFontInfo are initialized
This commit is contained in:
parent
fafa12af91
commit
9936d1ff3a
|
@ -15,8 +15,8 @@ struct SDelegateFontInfo
|
||||||
QFontMetrics InfoFontMetrics;
|
QFontMetrics InfoFontMetrics;
|
||||||
QPen NamePen;
|
QPen NamePen;
|
||||||
QPen InfoPen;
|
QPen InfoPen;
|
||||||
int Margin;
|
int Margin = 0;
|
||||||
int Spacing;
|
int Spacing = 0;
|
||||||
|
|
||||||
SDelegateFontInfo()
|
SDelegateFontInfo()
|
||||||
: NameFontMetrics(NameFont), InfoFontMetrics(InfoFont) {}
|
: NameFontMetrics(NameFont), InfoFontMetrics(InfoFont) {}
|
||||||
|
@ -28,7 +28,7 @@ class CCustomDelegate : public QStyledItemDelegate
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit CCustomDelegate(QObject* pParent = 0)
|
explicit CCustomDelegate(QObject* pParent = nullptr)
|
||||||
: QStyledItemDelegate(pParent)
|
: QStyledItemDelegate(pParent)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue