34 bool addModel(
const QSharedPointer<iModel>& model);
41 Q_INVOKABLE QObject* getModel(
const QString& modeId)
const;
44 QSharedPointer<Type>
get(
const QString& modeId)
const {
45 return _storage.value(modeId).staticCast<Type>();
52 QQmlApplicationEngine *engine()
const;
55 QHash<QString, QSharedPointer<iModel>> _storage;
56 QQmlApplicationEngine * _engine =
nullptr;