aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/targetsetuppage.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2017-01-11 17:25:58 +0100
committerTobias Hunger <tobias.hunger@qt.io>2017-01-18 10:39:16 +0000
commit25fbcca96b3254f3ca78dd349c356d9dd5176a52 (patch)
tree696cccb1ccbd96a70b513af8fdfb2dbb45e816ea /src/plugins/projectexplorer/targetsetuppage.h
parent1d4bf8c157fb14a78d12cf49c7eed3a345f52c1e (diff)
KitManager: Get rid of KitMatcher class
Use std::function instead. Clean up API while at it. Change-Id: I6e401ab57f5375e36710c30508c596af3f4b3385 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/targetsetuppage.h')
-rw-r--r--src/plugins/projectexplorer/targetsetuppage.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/projectexplorer/targetsetuppage.h b/src/plugins/projectexplorer/targetsetuppage.h
index 8f58950629..0b8918a954 100644
--- a/src/plugins/projectexplorer/targetsetuppage.h
+++ b/src/plugins/projectexplorer/targetsetuppage.h
@@ -27,8 +27,9 @@
#include "projectexplorer_export.h"
-#include "projectimporter.h"
#include "kitinformation.h"
+#include "kitmanager.h"
+#include "projectimporter.h"
#include <utils/wizardpage.h>
@@ -43,7 +44,6 @@ namespace Utils { class FileName; }
namespace ProjectExplorer {
class Kit;
-class KitMatcher;
class Project;
namespace Internal {
@@ -66,8 +66,8 @@ public:
void initializePage() override;
// Call these before initializePage!
- void setRequiredKitMatcher(const KitMatcher &matcher);
- void setPreferredKitMatcher(const KitMatcher &matcher);
+ void setRequiredKitPredicate(const ProjectExplorer::Kit::Predicate &predicate);
+ void setPreferredKitPredicate(const ProjectExplorer::Kit::Predicate &predicate);
/// Sets whether the targetsetupage uses a scrollarea
/// to host the widgets from the factories
@@ -108,8 +108,8 @@ private:
void setupWidgets();
void reset();
- KitMatcher m_requiredMatcher;
- KitMatcher m_preferredMatcher;
+ ProjectExplorer::Kit::Predicate m_requiredPredicate;
+ ProjectExplorer::Kit::Predicate m_preferredPredicate;
QPointer<ProjectImporter> m_importer = nullptr;
QLayout *m_baseLayout = nullptr;
QString m_projectPath;