Use less nullptr for empty flags

Change-Id: Ic4eafdc8f204a432a752a97593380609a408a7de
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2020-01-21 13:53:15 +01:00
parent c9a4176b2f
commit 811f4a38da
12 changed files with 14 additions and 14 deletions

View File

@@ -139,8 +139,8 @@ void DockWidgetTitleButton::paintEvent(QPaintEvent *)
opt.init(this);
opt.state |= QStyle::State_AutoRaise;
opt.icon = icon();
opt.subControls = nullptr;
opt.activeSubControls = nullptr;
opt.subControls = {};
opt.activeSubControls = {};
opt.features = QStyleOptionToolButton::None;
opt.arrowType = Qt::NoArrow;
int size = style()->pixelMetric(QStyle::PM_SmallIconSize, nullptr, this);