From ddac471a8ea70fdcc30651d257bfd50ac914a6a7 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Tue, 17 Mar 2015 09:59:17 +0100 Subject: [PATCH] Compile output: Do not do scroll wheel zooming That was the behavior before the fix for QTBUG-30845 (which introduced scroll wheel zooming for read-only QPlainTextEdit). Change-Id: I216ed6c827d8dc966af3af67158e9c275c9fa949 Task-number: QTCREATORBUG-11017 Reviewed-by: Daniel Teske --- src/plugins/projectexplorer/compileoutputwindow.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/plugins/projectexplorer/compileoutputwindow.cpp b/src/plugins/projectexplorer/compileoutputwindow.cpp index e3f9e599ec8..707bc15fb47 100644 --- a/src/plugins/projectexplorer/compileoutputwindow.cpp +++ b/src/plugins/projectexplorer/compileoutputwindow.cpp @@ -87,6 +87,13 @@ private slots: } protected: + void wheelEvent(QWheelEvent *ev) + { + // from QPlainTextEdit, but without scroll wheel zooming + QAbstractScrollArea::wheelEvent(ev); + updateMicroFocus(); + } + void mouseDoubleClickEvent(QMouseEvent *ev) { int line = cursorForPosition(ev->pos()).block().blockNumber();