From c4b2be45d29a247422e60bb8fdf1664c10384eee Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Mon, 6 Dec 2021 03:51:08 -0600 Subject: First pass for Qt6 compatibility --- src/pluginlistsortproxy.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pluginlistsortproxy.cpp') diff --git a/src/pluginlistsortproxy.cpp b/src/pluginlistsortproxy.cpp index 44285fd1..308a1398 100644 --- a/src/pluginlistsortproxy.cpp +++ b/src/pluginlistsortproxy.cpp @@ -72,7 +72,7 @@ bool PluginListSortProxy::lessThan(const QModelIndex &left, } else { for (int i = 0; i < lhsList.size(); ++i) { if (lhsList.at(i) != rhsList.at(i)) { - return lhsList.at(i) < rhsList.at(i); + return lhsList.at(i).toString() < rhsList.at(i).toString(); } } return false; @@ -122,13 +122,13 @@ bool PluginListSortProxy::filterMatchesPlugin(const QString &plugin) const bool display = false; QString filterCopy = QString(m_CurrentFilter); filterCopy.replace("||", ";").replace("OR", ";").replace("|", ";"); - QStringList ORList = filterCopy.split(";", QString::SkipEmptyParts); + QStringList ORList = filterCopy.split(";", Qt::SkipEmptyParts); bool segmentGood = true; //split in ORSegments that internally use AND logic for (auto& ORSegment : ORList) { - QStringList ANDKeywords = ORSegment.split(" ", QString::SkipEmptyParts); + QStringList ANDKeywords = ORSegment.split(" ", Qt::SkipEmptyParts); segmentGood = true; //check each word in the segment for match, each word needs to be matched but it doesn't matter where. -- cgit v1.3.1