Win: Fix use of deprecated isTopLevel()
By using the suggested isWindow() Change-Id: Ic9eb8f3e422a966f1ecbc0ba3d852bdf95928778 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>bb10
parent
71af0d7059
commit
944b5a8e3e
|
|
@ -2191,7 +2191,7 @@ void QWindowsXPStyle::drawControl(ControlElement element, const QStyleOption *op
|
|||
QColor dimHighlight(qMin(highlight.red()/2 + 110, 255),
|
||||
qMin(highlight.green()/2 + 110, 255),
|
||||
qMin(highlight.blue()/2 + 110, 255),
|
||||
(widget && widget->isTopLevel())? 255 : 127);
|
||||
(widget && widget->isWindow())? 255 : 127);
|
||||
p->setBrush(dimHighlight);
|
||||
p->drawRect(option->rect.adjusted(0, 0, -1, -1));
|
||||
p->restore();
|
||||
|
|
|
|||
Loading…
Reference in New Issue