[directfb] Rename class from WindowSurface to BackingStore

Catch up with the naming by renaming the file from windowsurface
to backingstore, update the class names and include files.

Change-Id: I1b16826b60c19490946a77f61518e18f8099adce
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
This commit is contained in:
Holger Hans Peter Freyther 2011-09-11 14:54:20 +02:00 committed by Qt by Nokia
parent ab50b60f5c
commit d8fc8aa585
5 changed files with 17 additions and 17 deletions

View File

@ -16,14 +16,14 @@ LIBS += $$DIRECTFB_LIBS
SOURCES = main.cpp \
qdirectfbintegration.cpp \
qdirectfbwindowsurface.cpp \
qdirectfbbackingstore.cpp \
qdirectfbblitter.cpp \
qdirectfbconvenience.cpp \
qdirectfbinput.cpp \
qdirectfbcursor.cpp \
qdirectfbwindow.cpp
HEADERS = qdirectfbintegration.h \
qdirectfbwindowsurface.h \
qdirectfbbackingstore.h \
qdirectfbblitter.h \
qdirectfbconvenience.h \
qdirectfbinput.h \

View File

@ -39,7 +39,7 @@
**
****************************************************************************/
#include "qdirectfbwindowsurface.h"
#include "qdirectfbbackingstore.h"
#include "qdirectfbintegration.h"
#include "qdirectfbblitter.h"
#include "qdirectfbconvenience.h"
@ -49,7 +49,7 @@
QT_BEGIN_NAMESPACE
QDirectFbWindowSurface::QDirectFbWindowSurface(QWindow *window)
QDirectFbBackingStore::QDirectFbBackingStore(QWindow *window)
: QPlatformBackingStore(window), m_pixmap(0), m_pmdata(0), m_dfbSurface(0)
{
@ -68,17 +68,17 @@ QDirectFbWindowSurface::QDirectFbWindowSurface(QWindow *window)
m_pixmap = new QPixmap(m_pmdata);
}
QDirectFbWindowSurface::~QDirectFbWindowSurface()
QDirectFbBackingStore::~QDirectFbBackingStore()
{
delete m_pixmap;
}
QPaintDevice *QDirectFbWindowSurface::paintDevice()
QPaintDevice *QDirectFbBackingStore::paintDevice()
{
return m_pixmap;
}
void QDirectFbWindowSurface::flush(QWindow *, const QRegion &region, const QPoint &offset)
void QDirectFbBackingStore::flush(QWindow *, const QRegion &region, const QPoint &offset)
{
m_pmdata->blittable()->unlock();
@ -90,7 +90,7 @@ void QDirectFbWindowSurface::flush(QWindow *, const QRegion &region, const QPoin
}
}
void QDirectFbWindowSurface::resize(const QSize &size, const QRegion& reg)
void QDirectFbBackingStore::resize(const QSize &size, const QRegion& reg)
{
QPlatformBackingStore::resize(size, reg);
@ -108,7 +108,7 @@ static inline void scrollSurface(IDirectFBSurface *surface, const QRect &r, int
surface->Flip(surface, &region, DFBSurfaceFlipFlags(DSFLIP_BLIT));
}
bool QDirectFbWindowSurface::scroll(const QRegion &area, int dx, int dy)
bool QDirectFbBackingStore::scroll(const QRegion &area, int dx, int dy)
{
m_pmdata->blittable()->unlock();
@ -127,12 +127,12 @@ bool QDirectFbWindowSurface::scroll(const QRegion &area, int dx, int dy)
return true;
}
void QDirectFbWindowSurface::beginPaint(const QRegion &region)
void QDirectFbBackingStore::beginPaint(const QRegion &region)
{
Q_UNUSED(region);
}
void QDirectFbWindowSurface::endPaint(const QRegion &region)
void QDirectFbBackingStore::endPaint(const QRegion &region)
{
Q_UNUSED(region);
}

View File

@ -49,11 +49,11 @@
QT_BEGIN_NAMESPACE
class QDirectFbWindowSurface : public QPlatformBackingStore
class QDirectFbBackingStore : public QPlatformBackingStore
{
public:
QDirectFbWindowSurface(QWindow *window);
~QDirectFbWindowSurface();
QDirectFbBackingStore(QWindow *window);
~QDirectFbBackingStore();
QPaintDevice *paintDevice();
void flush(QWindow *window, const QRegion &region, const QPoint &offset);

View File

@ -40,7 +40,7 @@
****************************************************************************/
#include "qdirectfbintegration.h"
#include "qdirectfbwindowsurface.h"
#include "qdirectfbbackingstore.h"
#include "qdirectfbblitter.h"
#include "qdirectfbconvenience.h"
#include "qdirectfbcursor.h"
@ -143,7 +143,7 @@ QAbstractEventDispatcher *QDirectFbIntegration::guiThreadEventDispatcher() const
QPlatformBackingStore *QDirectFbIntegration::createPlatformBackingStore(QWindow *window) const
{
return new QDirectFbWindowSurface(window);
return new QDirectFbBackingStore(window);
}
QPlatformFontDatabase *QDirectFbIntegration::fontDatabase() const

View File

@ -42,7 +42,7 @@
#include "qdirectfbwindow.h"
#include "qdirectfbinput.h"
#include "qdirectfbwindowsurface.h"
#include "qdirectfbbackingstore.h"
#include <directfb.h>