Mercurial > hg > svgui
changeset 1157:e6c798c9bc91 project-file-rework
Minor build updates
author | Chris Cannam |
---|---|
date | Tue, 25 Oct 2016 15:29:01 +0100 |
parents | 2ab1cf27a766 |
children | 8e4b90aeefaa |
files | widgets/WindowShapePreview.cpp |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/widgets/WindowShapePreview.cpp Tue Oct 25 11:04:50 2016 +0100 +++ b/widgets/WindowShapePreview.cpp Tue Oct 25 15:29:01 2016 +0100 @@ -47,13 +47,13 @@ void WindowShapePreview::updateLabels() { - float scaleRatio = QFontMetrics(font()).height() / 14.f; + float scaleRatio = float(QFontMetrics(font()).height()) / 14.f; if (scaleRatio < 1.f) scaleRatio = 1.f; int step = int(24 * scaleRatio); - float peak = int(48 * scaleRatio); + float peak = float(48 * scaleRatio); - int w = step * 4, h = (peak * 4) / 3; + int w = step * 4, h = int((peak * 4) / 3); WindowType type = m_windowType; Window<float> windower = Window<float>(type, step * 2);