forked from pool/discover
238b5d7ebb
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/discover?expand=0&rev=50
26 lines
856 B
Diff
26 lines
856 B
Diff
From c99f300bf3e52d7be5142b333f86e8c3b8b112e2 Mon Sep 17 00:00:00 2001
|
|
From: Aleix Pol <aleixpol@kde.org>
|
|
Date: Thu, 15 Sep 2016 18:19:14 +0200
|
|
Subject: [PATCH 1/4] Fix build with older Qt
|
|
|
|
---
|
|
libdiscover/resources/ResourcesProxyModel.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/libdiscover/resources/ResourcesProxyModel.cpp b/libdiscover/resources/ResourcesProxyModel.cpp
|
|
index 6821ef5..2cd822f 100644
|
|
--- a/libdiscover/resources/ResourcesProxyModel.cpp
|
|
+++ b/libdiscover/resources/ResourcesProxyModel.cpp
|
|
@@ -133,7 +133,7 @@ void ResourcesProxyModel::fetchSubcategories()
|
|
done.unite(res->categoryObjects());
|
|
}
|
|
QVariantList ret;
|
|
- for (Category* cat: qAsConst(done))
|
|
+ foreach (Category* cat, done)
|
|
ret += QVariant::fromValue<QObject*>(cat);
|
|
|
|
if (ret != m_subcategories) {
|
|
--
|
|
2.10.0
|
|
|