Skip to content

Instantly share code, notes, and snippets.

@vkjr
Last active March 10, 2019 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vkjr/fd144733bfab590b050df5f275e65cd3 to your computer and use it in GitHub Desktop.
Save vkjr/fd144733bfab590b050df5f275e65cd3 to your computer and use it in GitHub Desktop.
Qt snippets
# 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