diff options
author | Rafael Roquetto <rafael.roquetto.qnx@kdab.com> | 2013-03-27 10:59:30 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-02 20:16:23 (GMT) |
commit | 13db5648ce42da2a88d3b6dbbf2d6bdc88dc35d3 (patch) | |
tree | 83cc6ea80ea4101bb079db66d2576b770004ac27 /src/gui/dialogs/qdialog.cpp | |
parent | afd6ea5c3b7658be3ca42e120d492c3451d83754 (diff) | |
download | Qt-13db5648ce42da2a88d3b6dbbf2d6bdc88dc35d3.zip Qt-13db5648ce42da2a88d3b6dbbf2d6bdc88dc35d3.tar.gz Qt-13db5648ce42da2a88d3b6dbbf2d6bdc88dc35d3.tar.bz2 |
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/qdialog.cpp')
-rw-r--r-- | src/gui/dialogs/qdialog.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/dialogs/qdialog.cpp b/src/gui/dialogs/qdialog.cpp index 172dbb6..65441fb 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); |