diff --git a/src/TextInputWidget.cpp b/src/TextInputWidget.cpp index 14d0e67..934f2b2 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);