From ce9a8063365aef38646a3fcebd39a79bd72a43fa Mon Sep 17 00:00:00 2001 From: Gatis Paeglis Date: Tue, 27 Jun 2017 15:29:12 +0200 Subject: doc: cleanup raster window example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Documentation does not match the sample code. There is no explicit call to QWindow::create(). It is called implicitly by QWindow::show(). Furthermore, QWindow::create() documentation states: "Note that it is not usually necessary to call this function directly, as it will be implicitly called by show(), setVisible(), and other functions that require access to the platform resources.". Change-Id: I632da86438f7f88c1fd8359b9fd6d52f329291cb Reviewed-by: Topi Reiniƶ --- examples/gui/doc/src/rasterwindow.qdoc | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'examples/gui') diff --git a/examples/gui/doc/src/rasterwindow.qdoc b/examples/gui/doc/src/rasterwindow.qdoc index d276925059..36612e1707 100644 --- a/examples/gui/doc/src/rasterwindow.qdoc +++ b/examples/gui/doc/src/rasterwindow.qdoc @@ -74,14 +74,9 @@ \snippet rasterwindow/rasterwindow.cpp 1 - The constructor first of all calls \l QWindow::create(). This will - create the window in the windowing system. Without calling create, - the window will not get events and will not be visible in the - windowing system. The call to create does not show the window. We - then set the geometry to be something reasonable. - - Then we create the backingstore and pass it the window instance it - is supposed to manage. + In the constructor we create the backingstore and pass it the window + instance it is supposed to manage. We also set the initial window + geometry. \snippet rasterwindow/rasterwindow.cpp 2 -- cgit v1.2.3