diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2011-02-21 11:57:34 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2011-03-01 11:06:05 (GMT) |
commit | 327f4c8e3894ccf34e7629a8a840f92bd3ff8dd0 (patch) | |
tree | ddf41680fe506b07338797486e5412fe70e614c4 /src/plugins/platforms/linuxfb | |
parent | b67d537070e88feb708d13b46cd1468e2c0dc0e8 (diff) | |
download | Qt-327f4c8e3894ccf34e7629a8a840f92bd3ff8dd0.zip Qt-327f4c8e3894ccf34e7629a8a840f92bd3ff8dd0.tar.gz Qt-327f4c8e3894ccf34e7629a8a840f92bd3ff8dd0.tar.bz2 |
added capabilites to QPlatformIntegration
Reviewed-by: Jørgen Lind
Diffstat (limited to 'src/plugins/platforms/linuxfb')
-rw-r--r-- | src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp | 9 | ||||
-rw-r--r-- | src/plugins/platforms/linuxfb/qlinuxfbintegration.h | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp b/src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp index aa1d401..af5a337 100644 --- a/src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp +++ b/src/plugins/platforms/linuxfb/qlinuxfbintegration.cpp @@ -782,6 +782,15 @@ void QLinuxFbIntegration::blank(bool on) d_ptr->blank = on; } +bool QLinuxFbIntegration::hasCapability(QPlatformIntegration::Capability cap) const +{ + switch (cap) { + case ThreadedPixmaps: return true; + default: return QPlatformIntegration::hasCapability(cap); + } +} + + QPixmapData *QLinuxFbIntegration::createPixmapData(QPixmapData::PixelType type) const { return new QRasterPixmapData(type); diff --git a/src/plugins/platforms/linuxfb/qlinuxfbintegration.h b/src/plugins/platforms/linuxfb/qlinuxfbintegration.h index e93495c..ddf8873 100644 --- a/src/plugins/platforms/linuxfb/qlinuxfbintegration.h +++ b/src/plugins/platforms/linuxfb/qlinuxfbintegration.h @@ -77,6 +77,8 @@ public: QLinuxFbIntegration(); ~QLinuxFbIntegration(); + bool hasCapability(QPlatformIntegration::Capability cap) const; + QPixmapData *createPixmapData(QPixmapData::PixelType type) const; QPlatformWindow *createPlatformWindow(QWidget *widget, WId WinId) const; QWindowSurface *createWindowSurface(QWidget *widget, WId WinId) const; |