summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/qnx/qqnxbpseventfilter.h
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer.qnx@kdab.com>2012-04-25 13:16:24 +0100
committerQt by Nokia <qt-info@nokia.com>2012-05-26 00:34:40 +0200
commit48768ab4337175791681d4452aef3745a51bf8a6 (patch)
treee92b7328e5d31fd19fd1894d1e61749d7a69c042 /src/plugins/platforms/qnx/qqnxbpseventfilter.h
parentc4fbe872be1316f2fd65aa62863d6617cb129a3f (diff)
QNX: Adding native file dialog support for Blackberry
This patch enables use of native file dialogs in the application modal case. The native file open dialog is reasonable but the native file save dialog could do with some improvements to make it more usable. Perhaps providing our own "native" dialog UI would be an option once the widget style is finished. Change-Id: If5fb7cf73d27e52db7bfa6d97d8f8fb7912960bb Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
Diffstat (limited to 'src/plugins/platforms/qnx/qqnxbpseventfilter.h')
-rw-r--r--src/plugins/platforms/qnx/qqnxbpseventfilter.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/platforms/qnx/qqnxbpseventfilter.h b/src/plugins/platforms/qnx/qqnxbpseventfilter.h
index 215027e8e6..aafca0f989 100644
--- a/src/plugins/platforms/qnx/qqnxbpseventfilter.h
+++ b/src/plugins/platforms/qnx/qqnxbpseventfilter.h
@@ -43,6 +43,9 @@
#define QQNXBPSEVENTFILTER_H
#include <QObject>
+#include <QHash>
+
+#include <bps/dialog.h>
struct bps_event_t;
@@ -50,6 +53,7 @@ QT_BEGIN_NAMESPACE
class QAbstractEventDispatcher;
class QQnxNavigatorEventHandler;
+class QQnxFileDialogHelper;
class QQnxScreen;
class QQnxScreenEventHandler;
class QQnxVirtualKeyboardBps;
@@ -68,6 +72,9 @@ public:
void registerForScreenEvents(QQnxScreen *screen);
void unregisterForScreenEvents(QQnxScreen *screen);
+ void registerForDialogEvents(QQnxFileDialogHelper *dialog);
+ void unregisterForDialogEvents(QQnxFileDialogHelper *dialog);
+
private:
static bool dispatcherEventFilter(void *message);
bool bpsEventFilter(bps_event_t *event);
@@ -78,6 +85,7 @@ private:
QQnxNavigatorEventHandler *m_navigatorEventHandler;
QQnxScreenEventHandler *m_screenEventHandler;
QQnxVirtualKeyboardBps *m_virtualKeyboard;
+ QHash<dialog_instance_t, QQnxFileDialogHelper*> m_dialogMapper;
};
QT_END_NAMESPACE