remove unnecessary beginPaint and endPaint overrides

QPlatformBackingStore::endPaint does not take a QRegion parameter.
6ce6b8a378 set the API, but the
platform implementations were not all synced up since then.  There
was anyway no point in overriding beginPaint and endPaint on
platforms which don't need to do anything there.  This fixes
clang warnings of the form
QXcbBackingStore::endPaint hides overloaded virtual function

Change-Id: Id6cd0fc2c831a34576ac2c73eeb0d5741d26e622
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
bb10
Shawn Rutledge 2013-08-29 12:24:37 +02:00 committed by The Qt Project
parent 7d3f775075
commit 4c19055cb1
14 changed files with 2 additions and 50 deletions

View File

@ -77,14 +77,5 @@ void QFbBackingStore::resize(const QSize &size, const QRegion &staticContents)
mImage = QImage(size, window()->screen()->handle()->format());
}
void QFbBackingStore::beginPaint(const QRegion &region)
{
Q_UNUSED(region);
}
void QFbBackingStore::endPaint()
{
}
QT_END_NAMESPACE

View File

@ -59,9 +59,6 @@ public:
virtual QPaintDevice *paintDevice() { return &mImage; }
virtual void flush(QWindow *window, const QRegion &region, const QPoint &offset);
virtual void beginPaint(const QRegion &region);
virtual void endPaint();
virtual void resize(const QSize &size, const QRegion &region);
const QImage image() { return mImage; }

View File

@ -119,14 +119,4 @@ bool QDirectFbBackingStore::scroll(const QRegion &area, int dx, int dy)
return true;
}
void QDirectFbBackingStore::beginPaint(const QRegion &region)
{
Q_UNUSED(region);
}
void QDirectFbBackingStore::endPaint(const QRegion &region)
{
Q_UNUSED(region);
}
QT_END_NAMESPACE

View File

@ -61,9 +61,6 @@ public:
void resize (const QSize &size, const QRegion &staticContents);
bool scroll(const QRegion &area, int dx, int dy);
void beginPaint(const QRegion &region);
void endPaint(const QRegion &region);
private:
void lockSurfaceToImage();

View File

@ -203,10 +203,6 @@ void QEglFSBackingStore::beginPaint(const QRegion &rgn)
m_dirty = m_dirty | rgn;
}
void QEglFSBackingStore::endPaint()
{
}
void QEglFSBackingStore::resize(const QSize &size, const QRegion &staticContents)
{
Q_UNUSED(staticContents);

View File

@ -62,7 +62,6 @@ public:
QPaintDevice *paintDevice();
void beginPaint(const QRegion &);
void endPaint();
void flush(QWindow *window, const QRegion &region, const QPoint &offset);
void resize(const QSize &size, const QRegion &staticContents);

View File

@ -55,7 +55,6 @@ public:
QPaintDevice *paintDevice();
void beginPaint(const QRegion &);
void endPaint();
void flush(QWindow *window, const QRegion &region, const QPoint &offset);
void resize(const QSize &size, const QRegion &staticContents);

View File

@ -105,12 +105,6 @@ void QIOSBackingStore::flush(QWindow *window, const QRegion &region, const QPoin
m_context->swapBuffers(window);
}
void QIOSBackingStore::endPaint()
{
// Calling makeDone() on the context here would be an option,
// but is not needed, and would actually add some overhead.
}
void QIOSBackingStore::resize(const QSize &size, const QRegion &staticContents)
{
Q_UNUSED(staticContents);

View File

@ -78,10 +78,6 @@ void QKmsBackingStore::beginPaint(const QRegion &rgn)
m_dirty |= rgn;
}
void QKmsBackingStore::endPaint()
{
}
void QKmsBackingStore::flush(QWindow *window, const QRegion &region, const QPoint &offset)
{
Q_UNUSED(region)

View File

@ -59,7 +59,6 @@ public:
QPaintDevice *paintDevice();
void beginPaint(const QRegion &);
void endPaint();
void flush(QWindow *window, const QRegion &region, const QPoint &offset);
void resize(const QSize &size, const QRegion &staticContents);

View File

@ -169,9 +169,8 @@ void QQnxRasterBackingStore::beginPaint(const QRegion &region)
platformWindow()->adjustBufferSize();
}
void QQnxRasterBackingStore::endPaint(const QRegion &region)
void QQnxRasterBackingStore::endPaint()
{
Q_UNUSED(region);
qRasterBackingStoreDebug() << Q_FUNC_INFO << "w =" << window();
}

View File

@ -61,7 +61,7 @@ public:
void resize(const QSize &size, const QRegion &staticContents);
bool scroll(const QRegion &area, int dx, int dy);
void beginPaint(const QRegion &region);
void endPaint(const QRegion &region);
void endPaint();
private:
class ScrollOp {

View File

@ -283,10 +283,6 @@ void QXcbBackingStore::beginPaint(const QRegion &region)
}
}
void QXcbBackingStore::endPaint(const QRegion &)
{
}
void QXcbBackingStore::flush(QWindow *window, const QRegion &region, const QPoint &offset)
{
if (!m_image || m_image->size().isEmpty())

View File

@ -64,7 +64,6 @@ public:
bool scroll(const QRegion &area, int dx, int dy);
void beginPaint(const QRegion &);
void endPaint(const QRegion &);
private:
QXcbShmImage *m_image;