remove unused and internal QWidgetPrivate::DrawWidgetFlags enums

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2020-03-19 23:40:45 +00:00
parent 0366784761
commit bd25db9574
2 changed files with 2 additions and 6 deletions

View file

@ -4874,12 +4874,10 @@ void QWidgetPrivate::paintSiblingsRecursive(QPaintDevice *pdev, const QObjectLis
QRect boundingRect;
bool dirtyBoundingRect = true;
const bool exludeOpaqueChildren = (flags & DontDrawOpaqueChildren);
const bool excludeNativeChildren = (flags & DontDrawNativeChildren);
do {
QWidget *x = qobject_cast<QWidget*>(siblings.at(index));
if (x && !(exludeOpaqueChildren && x->d_func()->isOpaque) && !x->isHidden() && !x->isWindow()
&& !(excludeNativeChildren && x->internalWinId())) {
if (x && !(exludeOpaqueChildren && x->d_func()->isOpaque) && !x->isHidden() && !x->isWindow()) {
if (dirtyBoundingRect) {
boundingRect = rgn.boundingRect();
dirtyBoundingRect = false;

View file

@ -242,9 +242,7 @@ public:
DrawRecursive = 0x04,
DrawInvisible = 0x08,
DontSubtractOpaqueChildren = 0x10,
DontSetCompositionMode = 0x20,
DontDrawOpaqueChildren = 0x40,
DontDrawNativeChildren = 0x80
DontDrawOpaqueChildren = 0x20
};
enum CloseMode {