@@ -53,6 +53,51 @@ Currently, the following backends are supported:
5353AndroidSettingsAccessor, SettingsViewModel, DataSyncSettingsViewModel, @ref settings_generator
5454*/
5555
56+ /*!
57+ @fn QtMvvm::ISettingsAccessor::setDefaultAccessor()
58+
59+ @tparam T The type to be registered as the default type. Must implement ISettingsAccessor
60+
61+ After setting the type via this method, createDefaultAccessor() will create instances of that
62+ type when called.
63+
64+ @note In order for this to work, the passed type must have an invokable constructor, i.e.
65+ @code{.cpp}
66+ Q_INVOKABLE MySettingsAccessor(QObject *parent = nullptr);
67+ @endcode
68+
69+ @sa ISettingsAccessor::createDefaultAccessor
70+ */
71+
72+ /*!
73+ @fn QtMvvm::ISettingsAccessor::setDefaultAccessor(int)
74+
75+ @param typeId The typeId to be registered as the default type. Must implement ISettingsAccessor
76+
77+ After setting the type via this method, createDefaultAccessor() will create instances of that
78+ type when called.
79+
80+ @note In order for this to work, the passed type must have an invokable constructor, i.e.
81+ @code{.cpp}
82+ Q_INVOKABLE MySettingsAccessor(QObject *parent = nullptr);
83+ @endcode
84+
85+ @sa ISettingsAccessor::createDefaultAccessor
86+ */
87+
88+ /*!
89+ @fn QtMvvm::ISettingsAccessor::createDefaultAccessor
90+
91+ @param parent The parent object to be passed to to accessor constructor
92+ @returns A newly created instance of the default accessor type, or nullptr
93+
94+ Constructs and returns a new instance of the default accessor type. The default type is
95+ QSettingsAccessor, but can be overwritten via setDefaultAccessor(). If the type set like that
96+ is invalid or cannot be dynamically constructor, nullptr can be returned.
97+
98+ @sa ISettingsAccessor::setDefaultAccessor
99+ */
100+
56101/*!
57102@fn QtMvvm::ISettingsAccessor::contains
58103
0 commit comments