aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/cppquickfixsettingswidget.ui
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2022-09-19 16:14:07 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2022-09-22 13:26:20 +0000
commit0f7a539262f8ee7c9aa113e95153d19a3cdd79a6 (patch)
treeea3aa9c08e25627d9c76ba7d9d06f854dbcdaf4e /src/plugins/cppeditor/cppquickfixsettingswidget.ui
parenta8397c129fd70a85a80518947e69897f2ec26ca8 (diff)
CppEditor: Let user decide whether to use "auto"
... in "Assign to Local Variable" quickfix. Fixes: QTCREATORBUG-28099 Change-Id: I3640ef3d1e069bb2cac4d78f0ae60726b131c4fe Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppquickfixsettingswidget.ui')
-rw-r--r--src/plugins/cppeditor/cppquickfixsettingswidget.ui10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/cppeditor/cppquickfixsettingswidget.ui b/src/plugins/cppeditor/cppquickfixsettingswidget.ui
index 692eddda9b..828759003f 100644
--- a/src/plugins/cppeditor/cppquickfixsettingswidget.ui
+++ b/src/plugins/cppeditor/cppquickfixsettingswidget.ui
@@ -647,6 +647,16 @@
</widget>
</item>
<item>
+ <widget class="QCheckBox" name="useAutoCheckBox">
+ <property name="toolTip">
+ <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Uncheck this to make Qt Creator try to derive the type of expression in the &amp;quot;Assign to Local Variable&amp;quot; quickfix.&lt;/p&gt;&lt;p&gt;Note that this might fail for more complex types.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+ </property>
+ <property name="text">
+ <string>Use type &quot;auto&quot; when creating new variables</string>
+ </property>
+ </widget>
+ </item>
+ <item>
<widget class="QGroupBox" name="groupBox_3">
<property name="title">
<string>Custom Getter Setter Templates</string>