diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2010-04-21 13:45:53 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2010-04-21 13:45:53 (GMT) |
commit | bf9b927dd7143ef02591308b1cecc0c44417deb9 (patch) | |
tree | 46d2cfbfc17072aa960795af7cc8ed6133234c77 /src/plugins/platforms/minimal/qminimalintegration.cpp | |
parent | 51dca5f8afc3aa619a3bb62858db78a85cc3ecef (diff) | |
download | Qt-bf9b927dd7143ef02591308b1cecc0c44417deb9.zip Qt-bf9b927dd7143ef02591308b1cecc0c44417deb9.tar.gz Qt-bf9b927dd7143ef02591308b1cecc0c44417deb9.tar.bz2 |
Rename files in platform plugins follow same pattern
Diffstat (limited to 'src/plugins/platforms/minimal/qminimalintegration.cpp')
-rw-r--r-- | src/plugins/platforms/minimal/qminimalintegration.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/plugins/platforms/minimal/qminimalintegration.cpp b/src/plugins/platforms/minimal/qminimalintegration.cpp new file mode 100644 index 0000000..e947bf1 --- /dev/null +++ b/src/plugins/platforms/minimal/qminimalintegration.cpp @@ -0,0 +1,33 @@ +#include "qminimalintegration.h" +#include "qminimalwindowsurface.h" + +#include <QtGui/private/qpixmap_raster_p.h> +#include <QtGui/QPlatformWindow> + +QMinimalIntegration::QMinimalIntegration() +{ + QMinimalScreen *mPrimaryScreen = new QMinimalScreen(); + + mPrimaryScreen->mGeometry = QRect(0, 0, 240, 320); + mPrimaryScreen->mDepth = 16; + mPrimaryScreen->mFormat = QImage::Format_RGB16; + + mScreens.append(mPrimaryScreen); +} + +QPixmapData *QMinimalIntegration::createPixmapData(QPixmapData::PixelType type) const +{ + return new QRasterPixmapData(type); +} + +QPlatformWindow *QMinimalIntegration::createPlatformWindow(QWidget *widget, WId winId) const +{ + Q_UNUSED(winId); + return new QPlatformWindow(widget); +} + +QWindowSurface *QMinimalIntegration::createWindowSurface(QWidget *widget, WId winId) const +{ + Q_UNUSED(winId); + return new QMinimalWindowSurface(widget); +} |