mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-06-23 15:03:47 +00:00
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;
|
||||
QPen NamePen;
|
||||
QPen InfoPen;
|
||||
int Margin;
|
||||
int Spacing;
|
||||
int Margin = 0;
|
||||
int Spacing = 0;
|
||||
|
||||
SDelegateFontInfo()
|
||||
: NameFontMetrics(NameFont), InfoFontMetrics(InfoFont) {}
|
||||
@ -28,7 +28,7 @@ class CCustomDelegate : public QStyledItemDelegate
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit CCustomDelegate(QObject* pParent = 0)
|
||||
explicit CCustomDelegate(QObject* pParent = nullptr)
|
||||
: QStyledItemDelegate(pParent)
|
||||
{}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user