accessible: fix if (!foo != const) construct
Fixes a Clang warning. Change-Id: I114cf0f84ef9a4fe4ae814cedca883945d76e86c Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
This commit is contained in:
parent
1b5ab11d28
commit
37a2b82d00
@ -115,7 +115,7 @@ QAccessibleInterface *AccessibleFactory::create(const QString &classname, QObjec
|
||||
QToolButton *tb = qobject_cast<QToolButton*>(widget);
|
||||
if (!tb->menu())
|
||||
role = tb->isCheckable() ? QAccessible::CheckBox : QAccessible::PushButton;
|
||||
else if (!tb->popupMode() != QToolButton::DelayedPopup)
|
||||
else if (tb->popupMode() == QToolButton::DelayedPopup)
|
||||
role = QAccessible::ButtonDropDown;
|
||||
else
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user