NetAbstractItemModelRoleNames.cpp..\QmlNet\QmlNet\qml\NetAbstractItemModelRoleNames.cpp(3): error C7555: use of designated initializers requires at least '/std:c++latest'..\QmlNet\QmlNet\qml\NetQModelIndex.cpp(7): error C7555: use of designated initializers requires at least '/std:c++latest'..\QmlNet\QmlNet\qml\NetQModelIndex.cpp(12): error C7555: use of designated initializers requires at least '/std:c++latest'NetAbstractItemModel.cppC:\projects\qmlnet\src\native\QmlNet\QmlNet\qml\NetAbstractItemModel.h(87): warning C4100: 'idx': unreferenced formal parameterC:\projects\qmlnet\src\native\QmlNet\QmlNet\qml\NetAbstractItemModel.h(94): warning C4100: 'idx': unreferenced formal parameter..\QmlNet\QmlNet\qml\NetAbstractItemModel.cpp(7): error C7555: use of designated initializers requires at least '/std:c++latest'..\QmlNet\QmlNet\qml\NetAbstractItemModel.cpp(43): warning C4190: 'net_abstract_item_model_get_flags' has C-linkage specified, but returns UDT 'std::function<int (ModelIdx)>' which is incompatible with CC:\projects\qmlnet\src\native\QmlNet\QmlNet\qml\NetAbstractItemModel.h(13): note: see declaration of 'std::function<int (ModelIdx)>'..\QmlNet\QmlNet\qml\NetAbstractItemModel.cpp(44): warning C4190: 'net_abstract_item_model_get_data' has C-linkage specified, but returns UDT 'std::function<Variant (ModelIdx,int)>' which is incompatible with CC:\projects\qmlnet\src\native\QmlNet\QmlNet\qml\NetAbstractItemModel.h(16): note: see declaration of 'std::function<Variant (ModelIdx,int)>'..\QmlNet\QmlNet\qml\NetAbstractItemModel.cpp(45): warning C4190: 'net_abstract_item_model_get_header_data' has C-linkage specified, but returns UDT 'std::function<Variant (int,int,int)>' which is incompatible with CC:\projects\qmlnet\src\native\QmlNet\QmlNet\qml\NetAbstractItemModel.h(19): note: see declaration of 'std::function<Variant (int,int,int)>'..\QmlNet\QmlNet\qml\NetAbstractItemModel.cpp(46): warning C4190: 'net_abstract_item_model_get_row_count' has C-linkage specified, but returns UDT 'std::function<int (ModelIdx)>' which is incompatible with CC:\projects\qmlnet\src\native\QmlNet\QmlNet\qml\NetAbstractItemModel.h(13): note: see declaration of 'std::function<int (ModelIdx)>'..\QmlNet\QmlNet\qml\NetAbstractItemModel.cpp(47): warning C4190: 'net_abstract_item_model_get_column_count' has C-linkage specified, but returns UDT 'std::function<int (ModelIdx)>' which is incompatible with CC:\projects\qmlnet\src\native\QmlNet\QmlNet\qml\NetAbstractItemModel.h(13): note: see declaration of 'std::function<int (ModelIdx)>'..\QmlNet\QmlNet\qml\NetAbstractItemModel.cpp(48): warning C4190: 'net_abstract_item_model_get_index' has C-linkage specified, but returns UDT 'std::function<ModelIdx (int,int,ModelIdx)>' which is incompatible with CC:\projects\qmlnet\src\native\QmlNet\QmlNet\qml\NetAbstractItemModel.h(28): note: see declaration of 'std::function<ModelIdx (int,int,ModelIdx)>'..\QmlNet\QmlNet\qml\NetAbstractItemModel.cpp(49): warning C4190: 'net_abstract_item_model_get_parent' has C-linkage specified, but returns UDT 'std::function<ModelIdx (ModelIdx)>' which is incompatible with CC:\projects\qmlnet\src\native\QmlNet\QmlNet\qml\NetAbstractItemModel.h(31): note: see declaration of 'std::function<ModelIdx (ModelIdx)>'..\QmlNet\QmlNet\qml\NetAbstractItemModel.cpp(50): warning C4190: 'net_abstract_item_model_get_role_names' has C-linkage specified, but returns UDT 'std::function<NetHashTypeContainer *(void)>' which is incompatible with CC:\projects\qmlnet\src\native\QmlNet\QmlNet\qml\NetAbstractItemModel.h(34): note: see declaration of 'std::function<NetHashTypeContainer *(void)>'Generating Code...jom: C:\projects\qmlnet\src\native\build\Makefile.Release [release\NetQModelIndex.obj] Error 2jom: C:\projects\qmlnet\src\native\build\Makefile.Release [release\NetAbstractItemModelRoleNames.obj] Error 2jom: C:\projects\qmlnet\src\native\build\Makefile [release-install] Error 2
This PR implements the minimum recommended APIs necessary to implement read-only models in C# that can interop with QML, handling 90% of usecases for models.
Depends onqmlnet/qmlnet-native#1.