Commit 84a62524 authored by Michael Brüning's avatar Michael Brüning Committed by Karsten Heimrich
Browse files

Use zoom factor instead of text size multiplier in helpviewer_qwv.cpp.



Task-number: QTCREATORBUG-7199

Change-Id: Iaad133b5dd729b2f9dc141b13162213cd6a41f49
Reviewed-by: default avatarKarsten Heimrich <karsten.heimrich@digia.com>
parent ab7ef160
......@@ -350,7 +350,7 @@ HelpViewer::HelpViewer(qreal zoom, QWidget *parent)
connect(page(), SIGNAL(printRequested(QWebFrame*)), this, SIGNAL(printRequested()));
setViewerFont(viewerFont());
setTextSizeMultiplier(zoom == 0.0 ? 1.0 : zoom);
setZoomFactor(zoom == 0.0 ? 1.0 : zoom);
}
HelpViewer::~HelpViewer()
......@@ -376,22 +376,22 @@ void HelpViewer::setViewerFont(const QFont &font)
void HelpViewer::scaleUp()
{
setTextSizeMultiplier(textSizeMultiplier() + 0.1);
setZoomFactor(zoomFactor() + 0.1);
}
void HelpViewer::scaleDown()
{
setTextSizeMultiplier(qMax(qreal(0.0), textSizeMultiplier() - qreal(0.1)));
setZoomFactor(qMax(qreal(0.0), zoomFactor() - qreal(0.1)));
}
void HelpViewer::resetScale()
{
setTextSizeMultiplier(1.0);
setZoomFactor(1.0);
}
qreal HelpViewer::scale() const
{
return textSizeMultiplier();
return zoomFactor();
}
QString HelpViewer::title() const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment