summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpppointerdeclarationformatter.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@theqtcompany.com>2014-12-09 11:12:17 +0100
committerKai Koehne <kai.koehne@theqtcompany.com>2015-01-13 16:43:16 +0100
commit32fa850a6d12718f7c9fa07c4cd7f6d5f6b60224 (patch)
tree16a89ce006876b454ee1de50e44c075270b92cb3 /src/plugins/cpptools/cpppointerdeclarationformatter.cpp
parent036f4f00eb4e1a8983e986da427e11c3d46b8c60 (diff)
downloadqt-creator-32fa850a6d12718f7c9fa07c4cd7f6d5f6b60224.tar.gz
Outline: Redo save/restore of settings
The OutlineStackWidget stored its position in the outline to be able to save/restore settings specific to the sub-widget (IOutlineWidget). However, the index can get out sync if another NavigationWidget with a lower index number is split, and the relative position changes. The change therefore avoids saving an index, and rather keeps the sum of all sub-widget settings in a QVariantMap, only reading and writing to the global settings object if necessary. The settings are also not stored in the [General] section anymore, but in a subgroup [Sidebar.Outline.X], where X is the index of the outline in the view. This avoids having to always iterate over all keys. No effort has been made to take over the old settings. I doubt anyone will notice, though. Change-Id: I85017cbb3e32b0a16da43ce6339deb7a053d6b09 Task-number: QTCREATORBUG-13614 Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
Diffstat (limited to 'src/plugins/cpptools/cpppointerdeclarationformatter.cpp')
0 files changed, 0 insertions, 0 deletions