Commit 7b6b5403 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Port deprecated QList::swap() -> QList::swapItemsAt()

parent 836a6834
......@@ -57,7 +57,11 @@ QIcon generateIcon(const WorkingSetIconParameters& params)
{9, 9, 5, 5},
};
if ( params.swapDiagonal ) {
#if (QT_VERSION >= QT_VERSION_CHECK(5, 13, 0))
rects.swapItemsAt(1, 2);
#else
rects.swap(1, 2);
#endif
}
QPainter painter(&pixmap);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment