diff options
| author | Zhang Hao <zhanghao@uniontech.com> | 2022-01-25 20:31:44 +0800 |
|---|---|---|
| committer | Zhang Hao <zhanghao@uniontech.com> | 2022-01-26 09:40:02 +0800 |
| commit | a9f03c8cfef9ba4837931b9dd7b3795ef0e6cf2b (patch) | |
| tree | 5587d8f9df58eb5400c91c237a40f8474627a6d4 /src/quick/handlers/qquickpointerhandler.cpp | |
| parent | 7680fc7beed9c9f8e3883ac1796ef332cf40a4c8 (diff) | |
Code tidies
Delete the conditional judgment that must be established
Change-Id: I2db7292cb368a979821336d5a639df9fb8e7e959
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/handlers/qquickpointerhandler.cpp')
| -rw-r--r-- | src/quick/handlers/qquickpointerhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/handlers/qquickpointerhandler.cpp b/src/quick/handlers/qquickpointerhandler.cpp index 2f38fe8973..a3878423e4 100644 --- a/src/quick/handlers/qquickpointerhandler.cpp +++ b/src/quick/handlers/qquickpointerhandler.cpp @@ -413,7 +413,7 @@ bool QQuickPointerHandler::approveGrabTransition(QPointerEvent *event, const QEv if (!allowed && (d->grabPermissions & ApprovesTakeOverByItems) && proposedGrabber->inherits("QQuickItem")) allowed = true; } else { - if (!allowed && (d->grabPermissions & ApprovesCancellation)) + if (d->grabPermissions & ApprovesCancellation) allowed = true; } } |
