diff options
author | Frederik Gladhorn <frederik.gladhorn@nokia.com> | 2012-04-13 12:54:30 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-13 17:36:51 (GMT) |
commit | 330b0bece4d7805067f488c157532f9fb9b48bbc (patch) | |
tree | d2fa4ceb0a8ac8bfa60a6e289d4c21bd6fb9c654 /src/plugins/accessible/widgets/qaccessiblemenu.cpp | |
parent | ba0b8769ced01064551eec7718044ac3a3427a9b (diff) | |
download | Qt-330b0bece4d7805067f488c157532f9fb9b48bbc.zip Qt-330b0bece4d7805067f488c157532f9fb9b48bbc.tar.gz Qt-330b0bece4d7805067f488c157532f9fb9b48bbc.tar.bz2 |
Use parentheses in statement with && and ||.
Change-Id: I4f968559a7371b87343cb5825eb83b0099364cf2
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
Diffstat (limited to 'src/plugins/accessible/widgets/qaccessiblemenu.cpp')
-rw-r--r-- | src/plugins/accessible/widgets/qaccessiblemenu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/accessible/widgets/qaccessiblemenu.cpp b/src/plugins/accessible/widgets/qaccessiblemenu.cpp index 2ec3d26..03e1438 100644 --- a/src/plugins/accessible/widgets/qaccessiblemenu.cpp +++ b/src/plugins/accessible/widgets/qaccessiblemenu.cpp @@ -623,7 +623,7 @@ QAccessible::State QAccessibleMenuItem::state(int child ) const s = Normal; QWidget *own = owner(); - if (own && own->testAttribute(Qt::WA_WState_Visible) == false || m_action->isVisible() == false) { + if (own && (own->testAttribute(Qt::WA_WState_Visible) == false || m_action->isVisible() == false)) { s |= Invisible; } |