summaryrefslogtreecommitdiffstats
path: root/src/gui/guikernel/qwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/guikernel/qwindow.cpp')
-rw-r--r--src/gui/guikernel/qwindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/guikernel/qwindow.cpp b/src/gui/guikernel/qwindow.cpp
index 60647953f2..7faf49395a 100644
--- a/src/gui/guikernel/qwindow.cpp
+++ b/src/gui/guikernel/qwindow.cpp
@@ -110,6 +110,12 @@ WId QWindow::winId() const
return d->platformWindow->winId();
}
+QWindow *QWindow::parent() const
+{
+ Q_D(const QWindow);
+ return d->parentWindow;
+}
+
/**
Sets the parent Window. This will lead to the windowing system managing the clip of the window, so it will be clipped to the parent window.
Setting parent to be 0(NULL) means map it as a top level window. If the parent window has grabbed its window system resources, then the current window will also grab its window system resources.