Commit 45d8532f authored by Cyril Rossi's avatar Cyril Rossi

Add documentation for ParentInConstructor option

parent bc25027a
......@@ -245,6 +245,15 @@ The following options are read from the kcfgc file:
and the Q_OBJECT macro will be added to the generated class.
Note that you will also need to pass the GENERATE_MOC option to the kconfig_add_kcfg_files macro.</td>
</tr>
<tr>
<td><b>ParentInConstructor</b></td>
<td>bool</td>
<td>false</td>
<td>If set to true, the generated constructor will take an additional QObject* parameter that will be used as the object's parent.
This is useful when working with KQuickAddons::ManagedConfigModule to set it as the parent of the generated class to allow automatic settings discovery and handle the deallocation.
Note this parameter is incompatible with <b>Singleton</b> set to true.
</td>
</tr>
</table>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment