QWindowsVistaStyle:Revert polishing of QAbstractScrollArea/QGraphicsView
Revert the polishing for QAbstractScrollArea and QGraphicsView introduced in a1f12273b2e355033ab2a9478d1e9702210a0733 Fixes: QTBUG-123722 Pick-to: 6.7.0 Change-Id: I9db9079c672f4bf70ce3401382a5843855df2c4a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit f5d5a42dc3fba2a3a9d911e8ddc589d191f7d247) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
d899a9abd5
commit
251bddc661
@ -4657,18 +4657,6 @@ void QWindowsVistaStyle::polish(QWidget *widget)
|
|||||||
else if (QListView *list = qobject_cast<QListView *> (widget)) {
|
else if (QListView *list = qobject_cast<QListView *> (widget)) {
|
||||||
list->viewport()->setAttribute(Qt::WA_Hover);
|
list->viewport()->setAttribute(Qt::WA_Hover);
|
||||||
}
|
}
|
||||||
if (widget->inherits("QGraphicsView") && !widget->inherits("QTextEdit")) {
|
|
||||||
QPalette pal = widget->palette();
|
|
||||||
pal.setColor(QPalette::Base, pal.window().color());
|
|
||||||
widget->setPalette(pal);
|
|
||||||
}
|
|
||||||
else if (widget->inherits("QAbstractScrollArea") && !widget->inherits("QMdiArea")) {
|
|
||||||
if (auto scrollarea = qobject_cast<QAbstractScrollArea*>(widget)) {
|
|
||||||
QPalette pal = widget->palette();
|
|
||||||
pal.setColor(scrollarea->viewport()->backgroundRole(), Qt::transparent);
|
|
||||||
scrollarea->viewport()->setPalette(pal);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user