mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Merge pull request #43 from vtronko/implicitconversion_fix
Get rid of implicit conversion in text input height calculation. Thanks @vtronko
This commit is contained in:
commit
6f13b0df0d
1 changed files with 2 additions and 2 deletions
|
@ -448,8 +448,8 @@ TextInputWidget::TextInputWidget(QWidget *parent)
|
||||||
QFont f;
|
QFont f;
|
||||||
f.setPointSizeF(f.pointSizeF());
|
f.setPointSizeF(f.pointSizeF());
|
||||||
const int fontHeight = QFontMetrics(f).height();
|
const int fontHeight = QFontMetrics(f).height();
|
||||||
const int contentHeight = fontHeight * 2.5;
|
const int contentHeight = static_cast<int>(fontHeight * 2.5);
|
||||||
const int InputHeight = fontHeight * 1.5;
|
const int InputHeight = static_cast<int>(fontHeight * 1.5);
|
||||||
|
|
||||||
setFixedHeight(contentHeight);
|
setFixedHeight(contentHeight);
|
||||||
setCursor(Qt::ArrowCursor);
|
setCursor(Qt::ArrowCursor);
|
||||||
|
|
Loading…
Reference in a new issue