aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/nativestyle/qstyle/windows
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-11-12 14:12:29 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-11-12 14:26:21 +0100
commitbd0e1913f0e75149e1978e9949cce7858b817830 (patch)
tree4b3013109184ba25f175ce2ba9438d08271620af /src/imports/nativestyle/qstyle/windows
parent01319ffe9fcc17e6fe3698ec7eb3f14ef5a41480 (diff)
Remove usage of Qt4CompatiblePainting
Matching qtbase Change-Id: I1bd569995197158727ed5dff5b86e041c7af2177 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/imports/nativestyle/qstyle/windows')
-rw-r--r--src/imports/nativestyle/qstyle/windows/qquickwindowsstyle.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/imports/nativestyle/qstyle/windows/qquickwindowsstyle.cpp b/src/imports/nativestyle/qstyle/windows/qquickwindowsstyle.cpp
index 45b2c79f..ea062a2e 100644
--- a/src/imports/nativestyle/qstyle/windows/qquickwindowsstyle.cpp
+++ b/src/imports/nativestyle/qstyle/windows/qquickwindowsstyle.cpp
@@ -2016,10 +2016,8 @@ void QWindowsStyle::drawComplexControl(ComplexControl cc, const QStyleOptionComp
}
QBrush oldBrush = p->brush();
- bool oldQt4CompatiblePainting = p->testRenderHint(QPainter::Qt4CompatiblePainting);
p->setPen(Qt::NoPen);
p->setBrush(handleBrush);
- p->setRenderHint(QPainter::Qt4CompatiblePainting);
Qt::BGMode oldMode = p->backgroundMode();
p->setBackgroundMode(Qt::OpaqueMode);
p->drawRect(x1, y1, x2-x1+1, y2-y1+1);
@@ -2102,7 +2100,6 @@ void QWindowsStyle::drawComplexControl(ComplexControl cc, const QStyleOptionComp
p->drawLine(x2, y2-1, x2+d, y2-1-d);
break;
}
- p->setRenderHint(QPainter::Qt4CompatiblePainting, oldQt4CompatiblePainting);
}
}
break;