forked from qt-creator/qt-creator
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:
@@ -137,15 +137,11 @@ void OpenPagesManager::setupInitialPages()
|
||||
const int pageCount = lastShownPageList.count();
|
||||
|
||||
if (pageCount > 0) {
|
||||
QList<float> zoomFactors = LocalHelpManager::lastShownPagesZoom();
|
||||
while (zoomFactors.count() < pageCount)
|
||||
zoomFactors.append(0.);
|
||||
|
||||
initialPage = LocalHelpManager::lastSelectedTab();
|
||||
for (int curPage = 0; curPage < pageCount; ++curPage) {
|
||||
const QString &curFile = lastShownPageList.at(curPage);
|
||||
if (engine.findFile(curFile).isValid() || curFile == Help::Constants::AboutBlank) {
|
||||
m_helpWidget->addViewer(curFile, zoomFactors.at(curPage));
|
||||
m_helpWidget->addViewer(curFile);
|
||||
} else if (curPage <= initialPage && initialPage > 0) {
|
||||
--initialPage;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user