More fixes...
authorSamuel Rødal <samuel.rodal@nokia.com>
Wed, 4 May 2011 11:57:06 +0000 (13:57 +0200)
committerSamuel Rødal <samuel.rodal@nokia.com>
Wed, 4 May 2011 11:57:06 +0000 (13:57 +0200)
src/gui/guikernel/qwindow.cpp
src/plugins/platforms/xcb/xcb.pro

index 6064795..7faf493 100644 (file)
@@ -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.
index 101bdcd..1a487d6 100644 (file)
@@ -23,6 +23,8 @@ HEADERS = \
         qxcbwindowsurface.h \
         qxcbnativeinterface.h
 
+QT += gui-private
+
 contains(QT_CONFIG, opengl) {
     QT += opengl