]> cloud.milkyroute.net Git - dolphin.git/commit
Stop using QVariant < operator
authorElvis Angelaccio <elvis.angelaccio@kde.org>
Wed, 14 Oct 2020 22:07:12 +0000 (00:07 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Wed, 14 Oct 2020 23:22:00 +0000 (01:22 +0200)
commit1ded75ce44f2644d054a8c0f0aa0418d4c83742e
treefb30f7b51c6cb707b53b55304f106ec1d36cc1c4
parentd9956c620eb38baa6e534eb14a8d376ea07ed8c6
Stop using QVariant < operator

It will be removed in Qt 6 without porting strategy:
https://github.com/qt/qtbase/commit/f43cb31ba00a431c6d0a0b17750483a72ae03bb0

We know that that variants will be either ints (for `count`) or longs (for `size`),
so just convert them to longs (to avoid overflows) and compare those.
src/kitemviews/kfileitemmodel.cpp