Skip to content

Commit 863ce9e

Browse files
fix toolkit build for Qt 6.4
1 parent ab378df commit 863ce9e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

uitools/cpp/Esri/ArcGISRuntime/Toolkit/SearchSourceInterface.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <QList>
2626
#include <QObject>
2727
#include <QString>
28+
#include <QQmlEngine>
2829

2930
Q_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

uitools/register/Esri/ArcGISRuntime/Toolkit/internal/register_cpp.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
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);

0 commit comments

Comments
 (0)