if ((index >= 0) && (index < itemList.size()))
return itemList.takeAt(index);
else
- return 0;
+ return nullptr;
}
Qt::Orientations FlowLayout::expandingDirections() const
if (parent->isWidgetType()) {
QWidget *pw = qobject_cast<QWidget*>(parent);
- return pw->style()->pixelMetric(pm, 0, pw);
+ return pw->style()->pixelMetric(pm, nullptr, pw);
} else
return static_cast<QLayout*>(parent)->spacing();
}