Last active
March 10, 2019 09:09
-
-
Save vkjr/fd144733bfab590b050df5f275e65cd3 to your computer and use it in GitHub Desktop.
Qt snippets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# propDeclaration | |
$type$ $name$() const; | |
void set$name:c$(const $type$& $name$); | |
#propImplementation | |
$type$ $className$::$name$() const { return $member$; } | |
void $className$::set$name:c$(const $type$& $name$) { | |
if ($name$ == $member$) | |
return; | |
$member$ = $name$; | |
emit $name$Changed(); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment