diff options
author | Joseph Donofry <rubberduckie3554@gmail.com> | 2019-03-03 18:48:46 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-03 18:48:46 -0500 |
commit | 6f13b0df0d7243ed503e31da0e293238570b7c72 (patch) | |
tree | 1215dd11eea7b6f783a7507dfcf881a2a55cb03a /src | |
parent | Merge pull request #40 from vtronko/textwidgetborder-fix (diff) | |
parent | Get rid of implicit conversion in text input height calculation (diff) | |
download | nheko-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.cpp | 4 |
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); |