summaryrefslogtreecommitdiff
path: root/src/plugins/ctfvisualizer/ctfvisualizertool.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2020-03-13 09:27:27 +0100
committerEike Ziller <eike.ziller@qt.io>2020-03-16 10:19:04 +0000
commit9295bfe3e47a83aa32b7d18f4f0082714528ab27 (patch)
tree710ddc132b03e509847bc3d8591a40c7067cc64e /src/plugins/ctfvisualizer/ctfvisualizertool.cpp
parent010bbb8ae036504f68b7d4403000a709e0eaa7b5 (diff)
downloadqt-creator-9295bfe3e47a83aa32b7d18f4f0082714528ab27.tar.gz
Fix split side by side behavior again
After fixing top/bottom splits, the side by side splitting scrolled wrongly if the cursor position was somewhere at the bottom of the view. Avoid restoring state if the editor is not in a layout, since the behavior can now differ depending on it. Calling restoreState before that, would make the behavior depend on the default size of the widget. This has the additional benefit that editors can adapt (e.g. make a previously visible text cursor visible) if they are moved/duplicated when opening a document in an existing split, not only when creating the split. Change-Id: I3916eb20c2251dbeac4b604f96af647cf142fcad Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/ctfvisualizer/ctfvisualizertool.cpp')
0 files changed, 0 insertions, 0 deletions