diff options
author | Jide Zhang <zccrs@live.com> | 2020-06-27 16:04:41 +0800 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2020-06-29 09:03:31 +0000 |
commit | 0c72854929aacc82330365d4be00a034197abfc5 (patch) | |
tree | b881861885f6f9051c1c2e717f2de33338c874ca | |
parent | b9dd052c47279848d474c47587c5995baf3a4c91 (diff) |
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>
-rw-r--r-- | src/client/qwaylandwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp index 802be1e02..110e69a93 100644 --- a/src/client/qwaylandwindow.cpp +++ b/src/client/qwaylandwindow.cpp @@ -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; |