forked from qt-creator/qt-creator
Help viewer: Add option for scroll wheel zooming
Fixes: QTCREATORBUG-14154 Change-Id: Ia6c4aedb78954614477f0228ba82c4dc476a2525 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -57,6 +57,9 @@ public:
|
||||
virtual qreal scale() const = 0;
|
||||
virtual void setScale(qreal scale) = 0;
|
||||
|
||||
void setScrollWheelZoomingEnabled(bool enabled);
|
||||
bool isScrollWheelZoomingEnabled() const;
|
||||
|
||||
virtual QString title() const = 0;
|
||||
|
||||
virtual QUrl source() const = 0;
|
||||
@@ -105,12 +108,15 @@ signals:
|
||||
void externalPageRequested(const QUrl &url);
|
||||
|
||||
protected:
|
||||
void wheelEvent(QWheelEvent *event) override;
|
||||
|
||||
void slotLoadStarted();
|
||||
void slotLoadFinished();
|
||||
|
||||
void restoreOverrideCursor();
|
||||
|
||||
Actions m_visibleActions;
|
||||
bool m_scrollWheelZoomingEnabled = true;
|
||||
int m_loadOverrideStack = 0;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user