Fix QT_NO_ACCESSIBILITY build on windows
Change-Id: I30b9477596696e3f4b5b51f2d5b201fe4efbdef4 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>bb10
parent
be55ecac61
commit
cebd5e2755
|
|
@ -657,8 +657,10 @@ void QWindowsVistaStyle::drawPrimitive(PrimitiveElement element, const QStyleOpt
|
|||
newStyle = !qobject_cast<const QTableView*>(view);
|
||||
selectionBehavior = view->selectionBehavior();
|
||||
selectionMode = view->selectionMode();
|
||||
#ifndef QT_NO_ACCESSIBILITY
|
||||
} else if (!widget) {
|
||||
newStyle = !QStyleHelper::hasAncestor(option->styleObject, QAccessible::MenuItem) ;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (newStyle && (vopt = qstyleoption_cast<const QStyleOptionViewItem *>(option))) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue