Avoid rounding in frameSizeToClientSize
This commit is contained in:
parent
4573337bfe
commit
e67e9b6e28
1 changed files with 2 additions and 2 deletions
|
@ -3615,8 +3615,8 @@ QPointF Window::clientPosToFramePos(const QPointF &point) const
|
||||||
|
|
||||||
QSizeF Window::frameSizeToClientSize(const QSizeF &size) const
|
QSizeF Window::frameSizeToClientSize(const QSizeF &size) const
|
||||||
{
|
{
|
||||||
const int width = size.width() - borderLeft() - borderRight();
|
const qreal width = size.width() - borderLeft() - borderRight();
|
||||||
const int height = size.height() - borderTop() - borderBottom();
|
const qreal height = size.height() - borderTop() - borderBottom();
|
||||||
return QSizeF(width, height);
|
return QSizeF(width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue