Add spaces around '+'
Like most other Qt coding styles, the necessary spaces should be added to the sides of the '+' Pick-to: 5.15 Change-Id: I6fdbc6b24861e7a75633354a0ded636b1a38cd21 Reviewed-by: Liang Qi <liang.qi@qt.io>
This commit is contained in:
parent
08a3e9eb8d
commit
a695c7fbc8
@ -366,8 +366,8 @@ void QWaylandWindow::setGeometry(const QRect &rect)
|
||||
void QWaylandWindow::resizeFromApplyConfigure(const QSize &sizeWithMargins, const QPoint &offset)
|
||||
{
|
||||
QMargins margins = frameMargins();
|
||||
int widthWithoutMargins = qMax(sizeWithMargins.width() - (margins.left()+margins.right()), 1);
|
||||
int heightWithoutMargins = qMax(sizeWithMargins.height() - (margins.top()+margins.bottom()), 1);
|
||||
int widthWithoutMargins = qMax(sizeWithMargins.width() - (margins.left() + margins.right()), 1);
|
||||
int heightWithoutMargins = qMax(sizeWithMargins.height() - (margins.top() + margins.bottom()), 1);
|
||||
QRect geometry(windowGeometry().topLeft(), QSize(widthWithoutMargins, heightWithoutMargins));
|
||||
|
||||
mOffset += offset;
|
||||
|
Loading…
x
Reference in New Issue
Block a user