Fix compiling with Qt < 5.4
QVector::removeAll/QVector::removeOne were only added in Qt 5.4
Differential Revision: https://phabricator.kde.org/D1941