Translations:KDevelop5/Manual/Code generation with templates/39/en: Difference between revisions
(Importing a new version from external source) |
(No difference)
|
Revision as of 08:00, 16 September 2017
You can see that data members are converted into Qt properties, with accessor functions and the Q_PROPERTY macros. Arguments to setter functions are even passed by const-reference, where appropriate. Additionally, a private class is declared, and a private pointer created with Q_DECLARE_PRIVATE. All this is done by the template, choosing a different template in the first step could completely change the output.