diff options
author | Tobias Hunger <tobias.hunger@digia.com> | 2013-08-09 17:45:14 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@digia.com> | 2013-08-20 14:49:17 +0200 |
commit | ee47b652a61e153ee82732b391a94e45d012ad7b (patch) | |
tree | 25fe5417be08a07355e3fe903655e505838bae0d /share/qtcreator/snippets | |
parent | b589336e54a79701d9091afca2d0a861fe6a96fe (diff) | |
download | qt-creator-ee47b652a61e153ee82732b391a94e45d012ad7b.tar.gz |
Snippets: Allow lowercase/titlecase/uppercase modifiers for variables
Use the same syntax already used in the custom wizard to denote
variables that are modified to be lower-/title-/uppercase:
$tESt:u$ will become TEST
$tESt:c$ will become TESt
$tESt:l$ will become test
The snippet will be inserted without any name mangling happening.
Once the editing is done the name mangling is applied to all fields.
Change-Id: I7c1f5a1ad2bb5acf1b88b54de51bb39391c64763
Reviewed-by: David Schulz <david.schulz@digia.com>
Diffstat (limited to 'share/qtcreator/snippets')
-rw-r--r-- | share/qtcreator/snippets/cpp.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qtcreator/snippets/cpp.xml b/share/qtcreator/snippets/cpp.xml index 549b1bd6c8..2eadb38e3e 100644 --- a/share/qtcreator/snippets/cpp.xml +++ b/share/qtcreator/snippets/cpp.xml @@ -71,5 +71,5 @@ case $value$: default: break; }</snippet> -<snippet group="C++" trigger="Q_PROPERTY" id="cpp_q_property">Q_PROPERTY($type$ $name$ READ $name$ WRITE set$name$ NOTIFY $name$Changed)</snippet> +<snippet group="C++" trigger="Q_PROPERTY" id="cpp_q_property">Q_PROPERTY($type$ $name$ READ $name$ WRITE set$name:c$ NOTIFY $name$Changed)</snippet> </snippets> |