diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2017-04-20 14:14:03 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2017-04-21 15:12:55 +0000 |
commit | 9cad7b6eac9aba1d70069af4d59f73697deeb2b0 (patch) | |
tree | 20ac009fb459c87d4bfe7d4fe56e2cc4066f77c6 /examples | |
parent | 031e0f436404a08a10aad330aaf1b271e5cdc2e9 (diff) |
Update rasterwindow example to not create() in the constructor
QBackingStore should be able to handle a non-created QWindow just fine.
Change-Id: I42299aa0e985422e1fe4279c1385b9979d267a47
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/gui/rasterwindow/rasterwindow.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/gui/rasterwindow/rasterwindow.cpp b/examples/gui/rasterwindow/rasterwindow.cpp index fb717a4c8a..68d1d7f524 100644 --- a/examples/gui/rasterwindow/rasterwindow.cpp +++ b/examples/gui/rasterwindow/rasterwindow.cpp @@ -53,12 +53,9 @@ //! [1] RasterWindow::RasterWindow(QWindow *parent) : QWindow(parent) + , m_backingStore(new QBackingStore(this)) { - create(); - m_backingStore = new QBackingStore(this); - setGeometry(100, 100, 300, 200); - } //! [1] |