remove unused QWindowSurface::endPaint() argument

less references to QRegion? hell yeah!

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-03-29 04:17:40 +02:00
parent 42014a3683
commit d89749b46e
3 changed files with 10 additions and 11 deletions

View file

@ -154,12 +154,12 @@ void QWidgetBackingStore::endPaint(const QRegion &cleaned, QWindowSurface *windo
{
#ifndef QT_NO_DEBUG
if (!beginPaintInfo->wasFlushed)
windowSurface->endPaint(cleaned);
windowSurface->endPaint();
else
QWidgetBackingStore::unflushPaint(tlw, cleaned);
#else
Q_UNUSED(beginPaintInfo);
windowSurface->endPaint(cleaned);
windowSurface->endPaint();
#endif
flush();

View file

@ -160,7 +160,7 @@ QPaintDevice *QWindowSurface::paintDevice()
\sa endPaint(), paintDevice()
*/
void QWindowSurface::beginPaint(const QRegion &rgn)
void QWindowSurface::beginPaint(const QRegion &region)
{
#if defined(Q_WS_X11) && !defined(QT_NO_XRENDER)
if (!qt_widget_private(window())->isOpaque && window()->testAttribute(Qt::WA_TranslucentBackground)) {
@ -168,22 +168,21 @@ void QWindowSurface::beginPaint(const QRegion &rgn)
p.setCompositionMode(QPainter::CompositionMode_Source);
p.setPen(Qt::NoPen);
p.setBrush(QBrush(Qt::transparent));
p.drawRects(rgn.rects());
p.drawRects(region.rects());
}
#else
Q_UNUSED(rgn);
Q_UNUSED(region);
#endif
}
/*!
This function is called after painting onto the surface has ended,
with the \a region in which the painting was performed.
This function is called after painting onto the surface has ended.
\sa beginPaint(), paintDevice()
*/
void QWindowSurface::endPaint(const QRegion &)
void QWindowSurface::endPaint()
{
// QApplication::syncX();
// QApplication::syncX();
}
/*!

View file

@ -63,8 +63,8 @@ public:
bool scroll(const QRegion &area, int dx, int dy);
void beginPaint(const QRegion &);
void endPaint(const QRegion &);
void beginPaint(const QRegion &region);
void endPaint();
QPoint offset(const QWidget *widget) const;
inline QRect rect(const QWidget *widget) const;