@@ -84,7 +84,7 @@ jl_datatype_t* julia_type_from_qt_id(int id)
8484{
8585 if (qmlwrap::g_variant_type_map.count (id) == 0 )
8686 {
87- qWarning () << " invalid variant type " << QMetaType::typeName (id);
87+ qWarning () << " invalid variant type " << QMetaType (id). name ( );
8888 }
8989 assert (qmlwrap::g_variant_type_map.count (id) == 1 );
9090 return qmlwrap::g_variant_type_map[id];
@@ -270,13 +270,13 @@ struct WrapQtAssociativeContainer
270270 wrapped.method (" cppsetindex!" , [] (WrappedT& hash, const ValueT& v, const KeyT& k) { hash[k] = v; });
271271 wrapped.method (" insert" , [] (WrappedT& hash, const KeyT& k, const ValueT& v) { hash.insert (k,v); });
272272 wrapped.method (" clear" , &WrappedT::clear);
273- wrapped.method (" remove" , & WrappedT:: remove);
273+ wrapped.method (" remove" , [] ( WrappedT& hash, const KeyT& k) -> bool { return hash. remove (k); } );
274274 wrapped.method (" empty" , &WrappedT::empty);
275275 wrapped.method (" iteratorbegin" , [] (WrappedT& hash) { return IteratorWrapperT<KeyT,ValueT>{hash.begin ()}; });
276276 wrapped.method (" iteratorend" , [] (WrappedT& hash) { return IteratorWrapperT<KeyT,ValueT>{hash.end ()}; });
277277 wrapped.method (" keys" , [] (const WrappedT& hash) { return hash.keys (); });
278278 wrapped.method (" values" , &WrappedT::values);
279- wrapped.method (" contains" , & WrappedT:: contains);
279+ wrapped.method (" contains" , [] ( WrappedT& hash, const KeyT& k) -> bool { return hash. contains (k); } );
280280 }
281281};
282282
@@ -441,7 +441,6 @@ JLCXX_MODULE define_julia_module(jlcxx::Module& qml_module)
441441
442442 jlcxx::for_each_parameter_type<qmlwrap::qvariant_types>(qmlwrap::WrapQVariant (qvar_type));
443443 qml_module.method (" type" , qmlwrap::julia_variant_type);
444- jlcxx::stl::apply_stl<QVariant>(qml_module);
445444
446445 qml_module.method (" make_qvariant_map" , [] ()
447446 {
@@ -483,7 +482,7 @@ JLCXX_MODULE define_julia_module(jlcxx::Module& qml_module)
483482 return success;
484483 });
485484
486- qml_module.method (" qt_prefix_path" , []() { return QLibraryInfo::location (QLibraryInfo::PrefixPath); });
485+ qml_module.method (" qt_prefix_path" , []() { return QLibraryInfo::path (QLibraryInfo::PrefixPath); });
487486
488487 auto qquickitem_type = qml_module.add_type <QQuickItem>(" QQuickItem" , julia_base_type<QObject>());
489488
0 commit comments