diff options
| author | Elvis Angelaccio <[email protected]> | 2020-05-28 19:42:23 +0200 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2020-10-15 01:22:00 +0200 |
| commit | 3bf2922e3337511fff974978b8b92f6e7bb53bec (patch) | |
| tree | 6771e1975ee3b4188e16cd8470b3b3e1d1766b0c /src/views | |
| parent | 31cba55cff36d1d1501350209482f25a429c0a27 (diff) | |
Port away from QList::toSet()
The QSet range constructor requires Qt 5.14.
In `DolphinView::slotHeaderContextMenuRequested()` the conversion from
QList to QSet was pointless, so we just use a QList now.
Diffstat (limited to 'src/views')
| -rw-r--r-- | src/views/dolphinview.cpp | 2 | ||||
| -rw-r--r-- | src/views/dolphinviewactionhandler.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 167f88c39..664e4eba9 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -963,7 +963,7 @@ void DolphinView::slotHeaderContextMenuRequested(const QPointF& pos) QPointer<QMenu> menu = new QMenu(QApplication::activeWindow()); KItemListView* view = m_container->controller()->view(); - const QSet<QByteArray> visibleRolesSet = view->visibleRoles().toSet(); + const QList<QByteArray> visibleRolesSet = view->visibleRoles(); bool indexingEnabled = false; #ifdef HAVE_BALOO diff --git a/src/views/dolphinviewactionhandler.cpp b/src/views/dolphinviewactionhandler.cpp index a63263bf5..eb22baa00 100644 --- a/src/views/dolphinviewactionhandler.cpp +++ b/src/views/dolphinviewactionhandler.cpp @@ -521,7 +521,7 @@ void DolphinViewActionHandler::slotVisibleRolesChanged(const QList<QByteArray>& { Q_UNUSED(previous) - const QSet<QByteArray> checkedRoles = current.toSet(); + const auto checkedRoles = QSet<QByteArray>(current.constBegin(), current.constEnd()); QHashIterator<QByteArray, KToggleAction*> it(m_visibleRoles); while (it.hasNext()) { it.next(); |
