Port away from QList::toSet
That's gone in Qt6, replaced by range constructors.
This commit is contained in:
parent
205fd169e5
commit
13f28d7d6d
1 changed files with 3 additions and 2 deletions
|
@ -1652,8 +1652,9 @@ void AbstractClient::setupWindowManagementInterface()
|
||||||
|
|
||||||
// Notify clients on activities changes
|
// Notify clients on activities changes
|
||||||
connect(this, &AbstractClient::activitiesChanged, w, [w, this] {
|
connect(this, &AbstractClient::activitiesChanged, w, [w, this] {
|
||||||
const auto newActivities = m_activityList.toSet();
|
const auto newActivities = QSet<QString>(m_activityList.begin(), m_activityList.end());
|
||||||
const auto oldActivities = w->plasmaActivities().toSet();
|
const auto oldActivitiesList = w->plasmaActivities();
|
||||||
|
const auto oldActivities = QSet<QString>(oldActivitiesList.begin(), oldActivitiesList.end());
|
||||||
|
|
||||||
const auto activitiesToAdd = newActivities - oldActivities;
|
const auto activitiesToAdd = newActivities - oldActivities;
|
||||||
for (const auto &activity : activitiesToAdd) {
|
for (const auto &activity : activitiesToAdd) {
|
||||||
|
|
Loading…
Reference in a new issue