Remove dead macOS specific code from QWidgetPaintManager
Change-Id: I8fdde17d32f20407aed44e4708f30db21555b81a Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
380dd8cde9
commit
8f083bade0
@ -638,12 +638,6 @@ void QWidgetRepaintManager::markDirtyOnScreen(const QRegion ®ion, QWidget *wi
|
|||||||
if (!widget || widget->d_func()->paintOnScreen() || region.isEmpty())
|
if (!widget || widget->d_func()->paintOnScreen() || region.isEmpty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#if 0 // Used to be included in Qt4 for Q_WS_MAC
|
|
||||||
if (!widget->testAttribute(Qt::WA_WState_InPaintEvent))
|
|
||||||
dirtyOnScreen += region.translated(topLevelOffset);
|
|
||||||
return;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Top-level.
|
// Top-level.
|
||||||
if (widget == tlw) {
|
if (widget == tlw) {
|
||||||
if (!widget->testAttribute(Qt::WA_WState_InPaintEvent))
|
if (!widget->testAttribute(Qt::WA_WState_InPaintEvent))
|
||||||
@ -1560,12 +1554,6 @@ void QWidgetPrivate::repaint_sys(const QRegion &rgn)
|
|||||||
&& (usesDoubleBufferedGLContext || q->autoFillBackground());
|
&& (usesDoubleBufferedGLContext || q->autoFillBackground());
|
||||||
QRegion toBePainted(noPartialUpdateSupport ? q->rect() : rgn);
|
QRegion toBePainted(noPartialUpdateSupport ? q->rect() : rgn);
|
||||||
|
|
||||||
#if 0 // Used to be included in Qt4 for Q_WS_MAC
|
|
||||||
// No difference between update() and repaint() on the Mac.
|
|
||||||
update_sys(toBePainted);
|
|
||||||
return;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
toBePainted &= clipRect();
|
toBePainted &= clipRect();
|
||||||
clipToEffectiveMask(toBePainted);
|
clipToEffectiveMask(toBePainted);
|
||||||
if (toBePainted.isEmpty())
|
if (toBePainted.isEmpty())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user