QtSupport: Qt for iOS Examples lists only "ios" tagged examples

Based on change ff7047e.

Change-Id: I41f9961d78ccfc001bb5687f17574ef9d81ee2d4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Assam Boudjelthia
2020-02-13 17:50:33 +02:00
parent 9c8b340816
commit f9e7a0d44a

View File

@@ -34,6 +34,7 @@
#include <QUrl> #include <QUrl>
#include <android/androidconstants.h> #include <android/androidconstants.h>
#include <ios/iosconstants.h>
#include <coreplugin/helpmanager.h> #include <coreplugin/helpmanager.h>
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
@@ -727,6 +728,12 @@ bool ExamplesListModelFilter::leaveFilterAcceptsRowBeforeFiltering(const Core::L
return true; return true;
} }
if (m_examplesListModel->exampleSetModel()->selectedQtSupports(Ios::Constants::IOS_DEVICE_TYPE)
&& !item->tags.contains("ios")) {
*earlyExitResult = false;
return true;
}
return false; return false;
} }