summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@nokia.com>2009-10-22 14:02:36 (GMT)
committerPaul Olav Tvete <paul.tvete@nokia.com>2009-10-22 14:03:59 (GMT)
commit67475f1f482cfb90c357f9e6d96592a1a29f8e7c (patch)
treefb056717bbeea2053578f5816db77085f7319a5e /src/plugins
parentc0395ffd43858e700e2f9015b892c2e978ee8881 (diff)
downloadQt-67475f1f482cfb90c357f9e6d96592a1a29f8e7c.zip
Qt-67475f1f482cfb90c357f9e6d96592a1a29f8e7c.tar.gz
Qt-67475f1f482cfb90c357f9e6d96592a1a29f8e7c.tar.bz2
WinId for toplevel windows.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/graphicssystems/testlite/qwindowsurface_testlite.cpp8
-rw-r--r--src/plugins/graphicssystems/testlite/qwindowsurface_testlite.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/graphicssystems/testlite/qwindowsurface_testlite.cpp b/src/plugins/graphicssystems/testlite/qwindowsurface_testlite.cpp
index e0b9b9f..b14efb8 100644
--- a/src/plugins/graphicssystems/testlite/qwindowsurface_testlite.cpp
+++ b/src/plugins/graphicssystems/testlite/qwindowsurface_testlite.cpp
@@ -568,4 +568,12 @@ void QTestLiteWindowSurface::setVisible(bool visible)
}
+WId QTestLiteWindowSurface::winId() const
+{
+ if (xw)
+ return (WId) xw->window;
+ else
+ return WId(0);
+}
+
QT_END_NAMESPACE
diff --git a/src/plugins/graphicssystems/testlite/qwindowsurface_testlite.h b/src/plugins/graphicssystems/testlite/qwindowsurface_testlite.h
index af57c0b..59db81f 100644
--- a/src/plugins/graphicssystems/testlite/qwindowsurface_testlite.h
+++ b/src/plugins/graphicssystems/testlite/qwindowsurface_testlite.h
@@ -78,6 +78,7 @@ public:
Qt::WindowFlags setWindowFlags(Qt::WindowFlags type);
Qt::WindowFlags windowFlags() const;
void setVisible(bool visible);
+ WId winId() const;
private:
QTestLiteGraphicsSystem *mGraphicsSystem;