Clarify foreign window documentation a bit

Change-Id: I50193cb0c106bc17a008e6778d2d722545c7cb1c
Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
This commit is contained in:
Tor Arne Vestbø 2015-10-13 16:06:54 +02:00 committed by Simon Hausmann
parent d49c0eb3fc
commit b37a548d08
2 changed files with 7 additions and 7 deletions

View File

@ -208,8 +208,7 @@ QPlatformServices *QPlatformIntegration::services() const
behavior for desktop platforms.
\value ForeignWindows The platform allows creating QWindows which represent
native windows created by other processes or anyway created by using native
libraries.
native windows created by other processes or by using native libraries.
\value NonFullScreenWindows The platform supports top-level windows which do not
fill the screen. The default implementation returns \c true. Returning false for

View File

@ -588,8 +588,7 @@ QWindow *QWindow::parent() const
Setting \a parent to be 0 will make the window become a top level window.
If \a parent is a window created by fromWinId(), then the current window
will be embedded inside \a parent, if the platform supports it. Window
embedding is currently supported only by the X11 platform plugin.
will be embedded inside \a parent, if the platform supports it.
*/
void QWindow::setParent(QWindow *parent)
{
@ -2377,9 +2376,11 @@ QWindow *QWindowPrivate::topLevelWindow() const
Given the handle \a id to a native window, this method creates a QWindow
object which can be used to represent the window when invoking methods like
setParent() and setTransientParent().
This can be used, on platforms which support it, to embed a window inside a
container or to make a window stick on top of a window created by another
process.
This can be used, on platforms which support it, to embed a QWindow inside a
native window, or to embed a native window inside a QWindow.
If foreign windows are not supported, this function returns 0.
\sa setParent()
\sa setTransientParent()