if ((index >= 0) && (index < itemList.size()))
return itemList.takeAt(index);
else
- return 0;
+ return nullptr;
}
Qt::Orientations FlowLayout::expandingDirections() const
if (w > size.width())
size.setWidth(w);
- int h = item->geometry().y() + item->geometry().width();
+ int h = item->geometry().y() + item->geometry().height();
if (h > size.height())
size.setHeight(h);
}
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();
}