Blackberry: Fix crash when opening file dialog without parent.
authorSergio Martins <sergio.martins.qnx@kdab.com>
Fri, 7 Dec 2012 10:49:19 +0000 (10:49 +0000)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 10 Dec 2012 12:23:51 +0000 (13:23 +0100)
commit1eabbc0908160de7879a9ee7fa43916f0f9f8d49
tree04b6ae7fde5dec8a013352f35dac250c825ab5bd
parentaa3a75ce145b6402578fc5b527d8a7c6a57cf765
Blackberry: Fix crash when opening file dialog without parent.

If parent is null, we now use qqnxintegration->primaryScreen()

This simplifies ctors of QQnxTheme and QQnxFileDialogHelper which now
receive a QQnxIntegration pointer instead of receiving a font database
and a bps event filter.

Change-Id: I3b1ed4d99f738b980a4f19a98618341a14e0c222
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
src/plugins/platforms/qnx/qqnxfiledialoghelper.cpp
src/plugins/platforms/qnx/qqnxfiledialoghelper.h
src/plugins/platforms/qnx/qqnxintegration.cpp
src/plugins/platforms/qnx/qqnxintegration.h
src/plugins/platforms/qnx/qqnxtheme.cpp
src/plugins/platforms/qnx/qqnxtheme.h