Win: Fix use of deprecated isTopLevel()

By using the suggested isWindow()

Change-Id: Ic9eb8f3e422a966f1ecbc0ba3d852bdf95928778
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
bb10
Mårten Nordheim 2022-03-04 13:45:48 +01:00
parent 71af0d7059
commit 944b5a8e3e
1 changed files with 1 additions and 1 deletions

View File

@ -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();