From f9e7a0d44ac56321891b6c95daa769804d2e5428 Mon Sep 17 00:00:00 2001 From: Assam Boudjelthia Date: Thu, 13 Feb 2020 17:50:33 +0200 Subject: [PATCH] QtSupport: Qt for iOS Examples lists only "ios" tagged examples Based on change ff7047e. Change-Id: I41f9961d78ccfc001bb5687f17574ef9d81ee2d4 Reviewed-by: Eike Ziller --- src/plugins/qtsupport/exampleslistmodel.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/plugins/qtsupport/exampleslistmodel.cpp b/src/plugins/qtsupport/exampleslistmodel.cpp index 045168a29f2..a5bf950bf5f 100644 --- a/src/plugins/qtsupport/exampleslistmodel.cpp +++ b/src/plugins/qtsupport/exampleslistmodel.cpp @@ -34,6 +34,7 @@ #include #include +#include #include #include @@ -727,6 +728,12 @@ bool ExamplesListModelFilter::leaveFilterAcceptsRowBeforeFiltering(const Core::L return true; } + if (m_examplesListModel->exampleSetModel()->selectedQtSupports(Ios::Constants::IOS_DEVICE_TYPE) + && !item->tags.contains("ios")) { + *earlyExitResult = false; + return true; + } + return false; }