summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpprefactoringengine.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2020-11-19 15:34:59 +0100
committerEike Ziller <eike.ziller@qt.io>2020-12-04 08:25:17 +0000
commit41b73594ad749ff167ce78d1dfc91b5bc4f3c525 (patch)
treefd0061499eb16785cb9df3da65def82b61310475 /src/plugins/cpptools/cpprefactoringengine.cpp
parent8ad9c0111ccfbac9a06513fa5c9baa6dc4e48970 (diff)
downloadqt-creator-41b73594ad749ff167ce78d1dfc91b5bc4f3c525.tar.gz
Add API for saving settings with default value
We should never actually write default values into the settings, because - if the default value changes in a later Qt Creator version, the new default should automatically take effect if the user didn't change the value - it senselessly grows the settings file Add a QtcSettings class that extends QSettings by a "setValueWithDefault" method, which does not write default values to the settings, and actually removes the settingskey if the user switches back to the default. Use it at the places where we already do this manually. Task-number: QTCREATORBUG-24762 Change-Id: Ia76414cb21e8521f3aeed1e37b43ae4fb3393ea3 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cpprefactoringengine.cpp')
0 files changed, 0 insertions, 0 deletions