summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs
diff options
context:
space:
mode:
authorRafael Roquetto <rafael.roquetto.qnx@kdab.com>2013-03-27 07:59:30 -0300
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-02 22:16:23 +0200
commit13db5648ce42da2a88d3b6dbbf2d6bdc88dc35d3 (patch)
tree83cc6ea80ea4101bb079db66d2576b770004ac27 /src/gui/dialogs
parentafd6ea5c3b7658be3ca42e120d492c3451d83754 (diff)
BlackBerry: show dialogs full screen
Except for message box, which will have their optimal geometry calculated at runtime. This fix is not necessary on Qt5 Change-Id: Ida4743acdceb5424ab93aa3a32c78db61dd6795c Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com> Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Diffstat (limited to 'src/gui/dialogs')
-rw-r--r--src/gui/dialogs/qdialog.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/dialogs/qdialog.cpp b/src/gui/dialogs/qdialog.cpp
index 172dbb60ed..65441fb9e5 100644
--- a/src/gui/dialogs/qdialog.cpp
+++ b/src/gui/dialogs/qdialog.cpp
@@ -69,6 +69,8 @@ extern bool qt_wince_is_smartphone(); //is defined in qguifunctions_wce.cpp
# include "qfontdialog.h"
# include "qwizard.h"
# include "private/qt_s60_p.h"
+#elif defined(Q_OS_BLACKBERRY)
+# include "qmessagebox.h"
#endif
#if defined(Q_WS_S60)
@@ -531,6 +533,7 @@ int QDialog::exec()
#endif //Q_WS_WINCE_WM
bool showSystemDialogFullScreen = false;
+
#ifdef Q_OS_SYMBIAN
if (qobject_cast<QFileDialog *>(this) || qobject_cast<QFontDialog *>(this) ||
qobject_cast<QWizard *>(this)) {
@@ -538,6 +541,11 @@ int QDialog::exec()
}
#endif // Q_OS_SYMBIAN
+#ifdef Q_OS_BLACKBERRY
+ if (!qobject_cast<QMessageBox *>(this))
+ showSystemDialogFullScreen = true;
+#endif // Q_OS_BLACKBERRY
+
if (showSystemDialogFullScreen) {
setWindowFlags(windowFlags() | Qt::WindowSoftkeysVisibleHint);
setWindowState(Qt::WindowFullScreen);