File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
cpp/Esri/ArcGISRuntime/Toolkit
register/Esri/ArcGISRuntime/Toolkit/internal Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 2525#include < QList>
2626#include < QObject>
2727#include < QString>
28+ #include < QQmlEngine>
2829
2930Q_MOC_INCLUDE (" SearchResult.h" )
3031
@@ -43,7 +44,9 @@ namespace Esri::ArcGISRuntime::Toolkit {
4344 class SearchSourceInterface : public QObject
4445 {
4546 Q_OBJECT
47+ QML_INTERFACE
4648 Q_PROPERTY (QString displayName READ displayName WRITE setDisplayName NOTIFY displayNameChanged)
49+
4750 public:
4851 SearchSourceInterface (QObject* parent = nullptr );
4952 ~SearchSourceInterface () override ;
@@ -77,4 +80,6 @@ namespace Esri::ArcGISRuntime::Toolkit {
7780
7881} // Esri::ArcGISRuntime::Toolkit
7982
83+ Q_DECLARE_INTERFACE (Esri::ArcGISRuntime::Toolkit::SearchSourceInterface, " Esri::ArcGISRuntime::Toolkit::SearchSourceInterface" )
84+
8085#endif // ESRI_ARCGISRUNTIME_TOOLKIT_SEARCHSOURCEINTERFACE_H
Original file line number Diff line number Diff line change 3434#include " PopupViewController.h"
3535#include " ScalebarController.h"
3636#include " SearchResult.h"
37- #include " SearchSourceInterface.h"
3837#include " SearchSuggestion.h"
3938#include " SearchViewController.h"
4039#include " SmartLocatorSearchSource.h"
@@ -200,7 +199,6 @@ namespace Esri::ArcGISRuntime::Toolkit {
200199 registerComponent<PopupViewController>();
201200 registerComponent<ScalebarController>();
202201 registerComponent<SearchResult>();
203- registerComponent<SearchSourceInterface>(CreationType::Interface);
204202 registerComponent<SearchSuggestion>();
205203 registerComponent<SearchViewController>();
206204 registerComponent<SmartLocatorSearchSource>(CreationType::Uncreatable);
You can’t perform that action at this time.
0 commit comments