diff options
author | Mårten Nordheim <marten.nordheim@qt.io> | 2022-03-04 13:45:48 +0100 |
---|---|---|
committer | Mårten Nordheim <marten.nordheim@qt.io> | 2022-03-07 18:25:35 +0100 |
commit | 944b5a8e3e1cb9552482a9abb2db8b6577c274dd (patch) | |
tree | ffa56934e90c990e54a4cd5dd7bf3387d33fd7c4 /src/plugins/styles | |
parent | 71af0d7059d47a199e1d26de6573d6a5038caa30 (diff) |
Win: Fix use of deprecated isTopLevel()
By using the suggested isWindow()
Change-Id: Ic9eb8f3e422a966f1ecbc0ba3d852bdf95928778
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/plugins/styles')
-rw-r--r-- | src/plugins/styles/windowsvista/qwindowsxpstyle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/styles/windowsvista/qwindowsxpstyle.cpp b/src/plugins/styles/windowsvista/qwindowsxpstyle.cpp index b0d0b6257e..50585afbad 100644 --- a/src/plugins/styles/windowsvista/qwindowsxpstyle.cpp +++ b/src/plugins/styles/windowsvista/qwindowsxpstyle.cpp @@ -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(); |