From 6b413dc32c485853710352a95e8bef928682558a Mon Sep 17 00:00:00 2001 From: Bernd Weimer Date: Thu, 21 Mar 2013 10:58:27 +0100 Subject: QNX: Added warning when low memory event is received Low memory warning has been added for debug purposes. Change-Id: I3ca4f1e68cec0914ce8d77b5bed4cde210c031fa Reviewed-by: Kevin Krammer Reviewed-by: Fabian Bumberger Reviewed-by: Sean Harmer --- src/plugins/platforms/qnx/qqnxbpseventfilter.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/platforms/qnx/qqnxbpseventfilter.cpp b/src/plugins/platforms/qnx/qqnxbpseventfilter.cpp index 26543a8d56..133bf02fee 100644 --- a/src/plugins/platforms/qnx/qqnxbpseventfilter.cpp +++ b/src/plugins/platforms/qnx/qqnxbpseventfilter.cpp @@ -46,6 +46,7 @@ #include "qqnxvirtualkeyboardbps.h" #include "qqnxfiledialoghelper.h" +#include #include #include @@ -248,6 +249,11 @@ bool QQnxBpsEventFilter::handleNavigatorEvent(bps_event_t *event) break; } + case NAVIGATOR_LOW_MEMORY: + qWarning() << "QGuiApplication based process" << QCoreApplication::applicationPid() + << "received \"NAVIGATOR_LOW_MEMORY\" event"; + return false; + default: qBpsEventFilterDebug() << Q_FUNC_INFO << "Unhandled navigator event. code=" << bps_event_get_code(event); return false; -- cgit v1.2.3