forked from qt-creator/qt-creator
Markdown: Fix keeping scroll position when text is edited
Change-Id: I1812f2835cc0e9bc23aeb1237363b82af1acc479 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -68,7 +68,7 @@ public:
|
||||
|
||||
connect(m_document->document(), &QTextDocument::contentsChanged, this, [this, browser] {
|
||||
QHash<QScrollBar *, int> positions;
|
||||
const auto scrollBars = findChildren<QScrollBar *>();
|
||||
const auto scrollBars = browser->findChildren<QScrollBar *>();
|
||||
|
||||
// save scroll positions
|
||||
for (QScrollBar *scrollBar : scrollBars)
|
||||
|
Reference in New Issue
Block a user