summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJoseph Donofry <rubberduckie3554@gmail.com>2019-03-03 18:48:46 -0500
committerGitHub <noreply@github.com>2019-03-03 18:48:46 -0500
commit6f13b0df0d7243ed503e31da0e293238570b7c72 (patch)
tree1215dd11eea7b6f783a7507dfcf881a2a55cb03a /src
parentMerge pull request #40 from vtronko/textwidgetborder-fix (diff)
parentGet rid of implicit conversion in text input height calculation (diff)
downloadnheko-6f13b0df0d7243ed503e31da0e293238570b7c72.tar.xz
Merge pull request #43 from vtronko/implicitconversion_fix
Get rid of implicit conversion in text input height calculation.  Thanks @vtronko 
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 14d0e67d..934f2b2c 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);