mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 10:22:55 +00:00
remove unused QWindowSurface::endPaint() argument
less references to QRegion? hell yeah! Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
42014a3683
commit
d89749b46e
3 changed files with 10 additions and 11 deletions
|
@ -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();
|
||||
|
|
|
@ -160,7 +160,7 @@ QPaintDevice *QWindowSurface::paintDevice()
|
|||
|
||||
\sa endPaint(), paintDevice()
|
||||
*/
|
||||
void QWindowSurface::beginPaint(const QRegion &rgn)
|
||||
void QWindowSurface::beginPaint(const QRegion ®ion)
|
||||
{
|
||||
#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();
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
|
@ -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 ®ion);
|
||||
void endPaint();
|
||||
|
||||
QPoint offset(const QWidget *widget) const;
|
||||
inline QRect rect(const QWidget *widget) const;
|
||||
|
|
Loading…
Add table
Reference in a new issue