aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/coreplugin/outputwindow.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2020-11-26 13:42:02 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2020-11-26 14:24:31 +0000
commit0f3145862479c770ef40b608dc54fd27923e1572 (patch)
treec3160f0f5e8373462751ad2df69bfb9a135057bc /src/plugins/coreplugin/outputwindow.h
parent596e0c9fcbc3a46da87e1dc9b5778edcf7413821 (diff)
Core::OutputWindow: Make auto-scrolling more robust
We relied on the scrollbar position as an invariant, which breaks if the formatter writes into the text editor directly. Instead, we update the "auto scroll" flag only if the user actively moves the scrollbar, which is what the intention was anyway. Task-number: QTCREATORBUG-24728 Change-Id: Ic747391b3206d6a5ba8eaf4e3cac9a70fed6dfbc Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/coreplugin/outputwindow.h')
-rw-r--r--src/plugins/coreplugin/outputwindow.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/coreplugin/outputwindow.h b/src/plugins/coreplugin/outputwindow.h
index c29d1a5a07..de951ded95 100644
--- a/src/plugins/coreplugin/outputwindow.h
+++ b/src/plugins/coreplugin/outputwindow.h
@@ -109,6 +109,7 @@ private:
void filterNewContent();
void handleNextOutputChunk();
void handleOutputChunk(const QString &output, Utils::OutputFormat format);
+ void updateAutoScroll();
Internal::OutputWindowPrivate *d = nullptr;
};