diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2011-03-01 13:58:53 +0100 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2011-03-01 14:26:55 +0100 |
commit | ccb623188369be7bf4b991ff8a1f81d27137984c (patch) | |
tree | dfe9acf2ed2d1fdec10403c87f4bd267fa92f2e3 /src/gui/kernel/qplatformnativeinterface_qpa.h | |
parent | adeec26e3bd67183e329cee4a0d1e8b7f6c454c6 (diff) | |
download | qt4-tools-ccb623188369be7bf4b991ff8a1f81d27137984c.tar.gz |
Lighthouse: Make Native Interface slightly more agile
We realised that we couldn't keep on adding virtual functions for all
specific needs so we made one virtual function which takes a string
parameter which enables the implementation to return anything.
It seems a bit odd to have a virtual function as an accessor for a class
with only 1 virtual function. But the idea is that we don't want a
void * in the core lighthouse api. Also, the implementations should
decleare more functions to do the heavy lifting of getting the handles
Reviewed-by: paul
Diffstat (limited to 'src/gui/kernel/qplatformnativeinterface_qpa.h')
-rw-r--r-- | src/gui/kernel/qplatformnativeinterface_qpa.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gui/kernel/qplatformnativeinterface_qpa.h b/src/gui/kernel/qplatformnativeinterface_qpa.h index 80d6229cb5..5ea2c13f62 100644 --- a/src/gui/kernel/qplatformnativeinterface_qpa.h +++ b/src/gui/kernel/qplatformnativeinterface_qpa.h @@ -55,11 +55,7 @@ class QWidget; class Q_GUI_EXPORT QPlatformNativeInterface { public: - virtual void *nativeDisplayForWidget(QWidget *widget); - virtual void *eglDisplayForWidget(QWidget *widget); - virtual void *nativeConnectionForWidget(QWidget *widget); - virtual void *nativeScreenForWidget(QWidget *widget); - virtual void *nativeGraphicsDeviceForWidget(QWidget *widget); + virtual void *nativeResourceForWidget(const QByteArray &resource, QWidget *widget); }; QT_END_NAMESPACE |