diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-09-08 15:58:03 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-09-23 15:59:38 +0200 |
commit | 710530bc553ade8c4b8b6be1872f56bdc86b5321 (patch) | |
tree | d27b90c6292fcf9fd69f9a194da2694cb6ae4c04 /src/widgets/widgets/qplaintextedit.h | |
parent | a2b453502c657dcc4e6926e4cdfec9d143bdb90c (diff) |
Fix too fast zooming in QTextEdit with smooth scrolling events
Do not zoom 1pt on every single wheel-event, but instead scale
the zoom with the size of the angle delta.
Change-Id: Idbe17356c7845ebd0039f655d3e611e71c6f0dd6
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Diffstat (limited to 'src/widgets/widgets/qplaintextedit.h')
-rw-r--r-- | src/widgets/widgets/qplaintextedit.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/widgets/qplaintextedit.h b/src/widgets/widgets/qplaintextedit.h index 54cd3e14ed..f61d9c3aaa 100644 --- a/src/widgets/widgets/qplaintextedit.h +++ b/src/widgets/widgets/qplaintextedit.h @@ -271,6 +271,7 @@ protected: QRectF blockBoundingGeometry(const QTextBlock &block) const; QAbstractTextDocumentLayout::PaintContext getPaintContext() const; + void zoomInF(float range); private: Q_DISABLE_COPY(QPlainTextEdit) |