Add "Zoom" setting to the Help font settings

If the scrollWheelZooming is enabled, this
setting will get updated when using scroll wheel.
It will also be used when zooming in/out
by using keyboard shortcuts.

Fixes: QTCREATORBUG-25109
Fixes: QTCREATORBUG-25230
Fixes: QTCREATORBUG-23731
Change-Id: I9d22632b4c034ce236fa39dba074df4a2746ff84
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Jarek Kobus
2021-01-14 13:21:15 +01:00
parent aa974e6816
commit 291f46386f
20 changed files with 188 additions and 230 deletions

View File

@@ -83,6 +83,9 @@ public:
static QFont fallbackFont();
static void setFallbackFont(const QFont &font);
static int fontZoom();
static int setFontZoom(int percentage);
static StartOption startOption();
static void setStartOption(StartOption option);
@@ -98,9 +101,6 @@ public:
static QStringList lastShownPages();
static void setLastShownPages(const QStringList &pages);
static QList<float> lastShownPagesZoom();
static void setLastShownPagesZoom(const QList<qreal> &zoom);
static int lastSelectedTab();
static void setLastSelectedTab(int index);
@@ -137,6 +137,7 @@ signals:
void filterIndexChanged(int index);
#endif
void fallbackFontChanged(const QFont &font);
void fontZoomChanged(int percentage);
void returnOnCloseChanged();
void scrollWheelZoomingEnabledChanged(bool enabled);
void contextHelpOptionChanged(Core::HelpManager::HelpViewerLocation option);