diff options
author | Bernd Weimer <bweimer@blackberry.com> | 2013-03-21 12:03:16 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-03 15:22:58 (GMT) |
commit | d997d68bc8ea6f5c1e98015b7af80838b87fe283 (patch) | |
tree | b0fc16b451a50489e93ab0c1f6337537c78ef488 /src/plugins/platforms | |
parent | 13db5648ce42da2a88d3b6dbbf2d6bdc88dc35d3 (diff) | |
download | Qt-d997d68bc8ea6f5c1e98015b7af80838b87fe283.zip Qt-d997d68bc8ea6f5c1e98015b7af80838b87fe283.tar.gz Qt-d997d68bc8ea6f5c1e98015b7af80838b87fe283.tar.bz2 |
BlackBerry: Added warning when low memory event is received
Low memory warning has been added for debug purposes.
Backport of 6b413dc32c485853710352a95e8bef928682558a
Change-Id: I79b3815d314227634b739935d85248cc526f2c89
Reviewed-by: Peter Hartmann <phartmann@blackberry.com>
Diffstat (limited to 'src/plugins/platforms')
-rw-r--r-- | src/plugins/platforms/blackberry/qbbbpseventfilter.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/platforms/blackberry/qbbbpseventfilter.cpp b/src/plugins/platforms/blackberry/qbbbpseventfilter.cpp index cd77751..cedc8dc 100644 --- a/src/plugins/platforms/blackberry/qbbbpseventfilter.cpp +++ b/src/plugins/platforms/blackberry/qbbbpseventfilter.cpp @@ -47,6 +47,7 @@ #include "qbbscreeneventhandler.h" #include "qbbvirtualkeyboardbps.h" +#include <QCoreApplication> #include <QAbstractEventDispatcher> #include <QDebug> @@ -263,6 +264,11 @@ bool QBBBpsEventFilter::handleNavigatorEvent(bps_event_t *event) break; } + case NAVIGATOR_LOW_MEMORY: + qWarning() << "QApplication based process" << QCoreApplication::applicationPid() + << "received \"NAVIGATOR_LOW_MEMORY\" event"; + return false; + default: #if defined(QBBBPSEVENTFILTER_DEBUG) qDebug() << "QBB: Unhandled navigator event. code=" << bps_event_get_code(event); |