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:
Marc Mutz 2013-09-14 15:56:46 +02:00 committed by The Qt Project
parent 1b5ab11d28
commit 37a2b82d00

View File

@ -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