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/qtextedit.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/qtextedit.h')
-rw-r--r-- | src/widgets/widgets/qtextedit.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/widgets/qtextedit.h b/src/widgets/widgets/qtextedit.h index a283a51b90..d23d2d59ce 100644 --- a/src/widgets/widgets/qtextedit.h +++ b/src/widgets/widgets/qtextedit.h @@ -304,6 +304,8 @@ protected: virtual void scrollContentsBy(int dx, int dy); virtual void doSetTextCursor(const QTextCursor &cursor); + void zoomInF(float range); + private: Q_DISABLE_COPY(QTextEdit) Q_PRIVATE_SLOT(d_func(), void _q_repaintContents(const QRectF &r)) |