Skip to content
Snippets Groups Projects
Commit d2a28072 authored by Vladyslav Tronko's avatar Vladyslav Tronko
Browse files

Get rid of implicit conversion in text input height calculation

parent 0c53a874
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment