summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qplatformscreen_p.h
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@digia.com>2015-01-20 16:10:26 +0100
committerTor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>2015-01-24 13:23:54 +0100
commitd824c7bcc546d80eabcdad34c9e2c0178a734858 (patch)
tree2c2ab8c650a4533a6a6b492be6ec1b50923073fb /src/gui/kernel/qplatformscreen_p.h
parentb26dc9bc05a052ddc24c4aa444e87cef9b5564f2 (diff)
Track QPlatformScreen -> QScreen using QPointer
Allows the QPlatformScreen to verify that the QScreen is alive before sending events to QPA for the given screen (which will assert if the screen is being destroyed). Change-Id: Ie77674fead3e0a4d4f6fedbf1f7f3c98364c7485 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
Diffstat (limited to 'src/gui/kernel/qplatformscreen_p.h')
-rw-r--r--src/gui/kernel/qplatformscreen_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qplatformscreen_p.h b/src/gui/kernel/qplatformscreen_p.h
index 42a5503461..fb80bfe662 100644
--- a/src/gui/kernel/qplatformscreen_p.h
+++ b/src/gui/kernel/qplatformscreen_p.h
@@ -52,7 +52,7 @@ class QScreen;
class QPlatformScreenPrivate
{
public:
- QScreen *screen;
+ QPointer<QScreen> screen;
};
QT_END_NAMESPACE