forked from qt-creator/qt-creator
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 <daniel.teske@theqtcompany.com>
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user