QWindows11Style: fix clang-cl warnings
QRect QRect rect and tableView are not used and clang-cl warns about that. Pick-to: 6.8 Change-Id: I35ae933b437952c6748e4b09d139cc06c9ce33cb Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de> (cherry picked from commit 1d83bffb291192f04db6f33313291147472f7014) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
87c790851e
commit
aca60117ee
@ -1141,7 +1141,6 @@ void QWindows11Style::drawControl(ControlElement element, const QStyleOption *op
|
||||
QPainter *painter, const QWidget *widget) const
|
||||
{
|
||||
Q_D(const QWindows11Style);
|
||||
QRect rect(option->rect);
|
||||
State flags = option->state;
|
||||
|
||||
painter->save();
|
||||
@ -2229,7 +2228,7 @@ void QWindows11Style::polish(QWidget* widget)
|
||||
pal.setColor(scrollarea->viewport()->backgroundRole(), Qt::transparent);
|
||||
scrollarea->viewport()->setPalette(pal);
|
||||
scrollarea->viewport()->setProperty("_q_original_background_palette", originalPalette);
|
||||
if (const auto tableView = qobject_cast<QTableView *>(widget))
|
||||
if (qobject_cast<QTableView *>(widget))
|
||||
widget->setAttribute(Qt::WA_Hover, true);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user