aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/coreplugin/outputwindow.h
diff options
context:
space:
mode:
authorDaniel Teske <daniel.teske@theqtcompany.com>2015-04-28 17:24:52 +0200
committerDaniel Teske <daniel.teske@theqtcompany.com>2015-05-18 11:06:17 +0000
commit0e95a56121fcfac3fb6410d21abb12685fca34fe (patch)
tree29bd1d8b627082b88353852a0fcc7ac93d554c99 /src/plugins/coreplugin/outputwindow.h
parent097ff14be39a58d103628018d00583d02b714267 (diff)
Make OutputWindow a bit faster
By limiting how often we scroll to the bottom and thus limiting how often we redraw. Change-Id: I42ec9dc6284112025108000420ccdfdf5d003f34 Task-number: QTCREATORBUG-14307 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/coreplugin/outputwindow.h')
-rw-r--r--src/plugins/coreplugin/outputwindow.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/coreplugin/outputwindow.h b/src/plugins/coreplugin/outputwindow.h
index a649a58c67..d5738ab720 100644
--- a/src/plugins/coreplugin/outputwindow.h
+++ b/src/plugins/coreplugin/outputwindow.h
@@ -37,6 +37,8 @@
#include <utils/outputformat.h>
#include <QPlainTextEdit>
+#include <QTimer>
+#include <QTime>
namespace Utils { class OutputFormatter; }
@@ -82,6 +84,8 @@ protected:
virtual void keyPressEvent(QKeyEvent *ev);
private:
+ QTimer m_scrollTimer;
+ QTime m_lastMessage;
void enableUndoRedo();
QString doNewlineEnforcement(const QString &out);