diff options
author | Sergio Martins <sergio.martins.qnx@kdab.com> | 2013-01-03 10:34:38 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-01-03 18:19:28 +0100 |
commit | 00b0dff93f77bed09687b876777bbf0cb4d6bfff (patch) | |
tree | 0df0278d49f57b3b2d11596368d4132153064a75 /src/plugins/platforms/qnx/qqnxrasterbackingstore.h | |
parent | 8e3d4f5e8752c035036a00c85b5dccc2676e82da (diff) |
QNX: Don't crash because the window hasn't been initialized yet.
Don't call window->handle() inside the backingstore ctor, because
we might still have the window ctor in the call stack
( ex: a QWindow sub-class that creates a backingstore inside it's
ctor).
Crash can be reproduced by running examples/gui/analogclock.
Change-Id: I4622ceaeb05696c5ae0181a528f58e5d102dcb22
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/plugins/platforms/qnx/qqnxrasterbackingstore.h')
-rw-r--r-- | src/plugins/platforms/qnx/qqnxrasterbackingstore.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/platforms/qnx/qqnxrasterbackingstore.h b/src/plugins/platforms/qnx/qqnxrasterbackingstore.h index 8abd81f217..a344ff209d 100644 --- a/src/plugins/platforms/qnx/qqnxrasterbackingstore.h +++ b/src/plugins/platforms/qnx/qqnxrasterbackingstore.h @@ -72,7 +72,9 @@ private: int dy; }; - QQnxWindow *m_platformWindow; + QQnxWindow *platformWindow() const; + + QWindow *m_window; QList<ScrollOp> m_scrollOpList; bool m_hasUnflushedPaintOperations; }; |