diff options
author | Jide Zhang <zccrs@live.com> | 2020-06-27 16:04:41 +0800 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2020-06-29 09:09:58 +0000 |
commit | ef0eeff3783ff81ed4146a58597beaa9199ea323 (patch) | |
tree | 8330c757a079f2be5630e821153bd1a440f30f30 | |
parent | eaeb21284ab7a3714c735ee8d7c348aa3bc3a07a (diff) | |
download | qtwayland-ef0eeff3783ff81ed4146a58597beaa9199ea323.tar.gz |
Add spaces around '+'
Like most other Qt coding styles, the necessary spaces should be added
to the sides of the '+'
Change-Id: I6fdbc6b24861e7a75633354a0ded636b1a38cd21
Reviewed-by: Liang Qi <liang.qi@qt.io>
(cherry picked from commit 0c72854929aacc82330365d4be00a034197abfc5)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-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 cb364d6a..2e0614ec 100644 --- a/src/client/qwaylandwindow.cpp +++ b/src/client/qwaylandwindow.cpp @@ -368,8 +368,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; |