summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorVladyslav Tronko <git@vtronko.me>2019-03-03 20:34:57 +0200
committerVladyslav Tronko <git@vtronko.me>2019-03-03 20:34:57 +0200
commitd2a28072f68e4603ac6f68cb35ee2440b6299e31 (patch)
tree10b0b8c6d81d6754e371632bc02c40697fbb7177 /src
parentUpdate README screenshots. Fixes #36 (diff)
downloadnheko-d2a28072f68e4603ac6f68cb35ee2440b6299e31.tar.xz
Get rid of implicit conversion in text input height calculation
Diffstat (limited to 'src')
-rw-r--r--src/TextInputWidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/TextInputWidget.cpp b/src/TextInputWidget.cpp

index 5fcba7a9..be6c556b 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<int>(fontHeight * 2.5); + const int InputHeight = static_cast<int>(fontHeight * 1.5); setFixedHeight(contentHeight); setCursor(Qt::ArrowCursor);