Fix backwards-compatible Qt6 warnings

This commit is contained in:
Johannes Wüller
2024-05-06 15:27:06 +02:00
committed by Chris Hennes
parent c12e1f8bc2
commit 0e24e121eb
22 changed files with 44 additions and 43 deletions

View File

@@ -119,7 +119,7 @@ QSize FlowLayout::sizeHint() const
QSize FlowLayout::minimumSize() const
{
QSize size;
for (auto item : qAsConst(itemList)) {
for (auto item : std::as_const(itemList)) {
size = size.expandedTo(item->minimumSize());
}
@@ -155,7 +155,7 @@ int FlowLayout::doLayout(const QRect& rect, bool testOnly) const
int y = effectiveRect.y();
int lineHeight = 0;
for (auto item : qAsConst(itemList)) {
for (auto item : std::as_const(itemList)) {
QWidget* wid = item->widget();
int spaceX = horizontalSpacing();
if (spaceX == -1) {