summaryrefslogtreecommitdiffstats
path: root/src/plugins/graphicssystems
diff options
context:
space:
mode:
authorJeremy Katz <jeremy.katz@nokia.com>2010-02-01 15:47:54 (GMT)
committerJeremy Katz <jeremy.katz@nokia.com>2010-02-01 15:47:54 (GMT)
commit9f761b8d9af22796e7b20fee2a9a464e253cf267 (patch)
tree24ce651d0893d48232138610ceeb2ae97e2327fa /src/plugins/graphicssystems
parentf4588871d38d244c83e50354da66d145ae40be8f (diff)
downloadQt-9f761b8d9af22796e7b20fee2a9a464e253cf267.zip
Qt-9f761b8d9af22796e7b20fee2a9a464e253cf267.tar.gz
Qt-9f761b8d9af22796e7b20fee2a9a464e253cf267.tar.bz2
winId() support for minimaldfb
Diffstat (limited to 'src/plugins/graphicssystems')
-rw-r--r--src/plugins/graphicssystems/minimaldfb/qwindowsurface_minimaldfb.cpp8
-rw-r--r--src/plugins/graphicssystems/minimaldfb/qwindowsurface_minimaldfb.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/src/plugins/graphicssystems/minimaldfb/qwindowsurface_minimaldfb.cpp b/src/plugins/graphicssystems/minimaldfb/qwindowsurface_minimaldfb.cpp
index d2b038c..d51498f 100644
--- a/src/plugins/graphicssystems/minimaldfb/qwindowsurface_minimaldfb.cpp
+++ b/src/plugins/graphicssystems/minimaldfb/qwindowsurface_minimaldfb.cpp
@@ -212,4 +212,12 @@ void QDirectFbWindowSurface::lower()
m_dfbWindow->LowerToBottom(m_dfbWindow);
}
+WId QDirectFbWindowSurface::winId() const
+{
+ DFBWindowID id;
+ m_dfbWindow->GetID(m_dfbWindow, &id);
+ return WId(id);
+}
+
+
QT_END_NAMESPACE
diff --git a/src/plugins/graphicssystems/minimaldfb/qwindowsurface_minimaldfb.h b/src/plugins/graphicssystems/minimaldfb/qwindowsurface_minimaldfb.h
index f6d48c6..ca34cbf 100644
--- a/src/plugins/graphicssystems/minimaldfb/qwindowsurface_minimaldfb.h
+++ b/src/plugins/graphicssystems/minimaldfb/qwindowsurface_minimaldfb.h
@@ -70,6 +70,9 @@ public:
void raise();
void lower();
+
+ WId winId() const;
+
private:
void lockSurfaceToImage();