From d2a28072f68e4603ac6f68cb35ee2440b6299e31 Mon Sep 17 00:00:00 2001 From: Vladyslav Tronko Date: Sun, 3 Mar 2019 20:34:57 +0200 Subject: [PATCH] Get rid of implicit conversion in text input height calculation --- src/TextInputWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TextInputWidget.cpp b/src/TextInputWidget.cpp index 5fcba7a..be6c556 100644 --- a/src/TextInputWidget.cpp +++ b/src/TextInputWidget.cpp @@ -448,8 +448,8 @@ TextInputWidget::TextInputWidget(QWidget *parent) QFont f; f.setPointSizeF(f.pointSizeF()); const int fontHeight = QFontMetrics(f).height(); - const int contentHeight = fontHeight * 2.5; - const int InputHeight = fontHeight * 1.5; + const int contentHeight = static_cast(fontHeight * 2.5); + const int InputHeight = static_cast(fontHeight * 1.5); setFixedHeight(contentHeight); setCursor(Qt::ArrowCursor);