diff options
author | Jason Barron <jbarron@trolltech.com> | 2009-07-15 09:29:16 (GMT) |
---|---|---|
committer | Jason Barron <jbarron@trolltech.com> | 2009-07-15 09:35:21 (GMT) |
commit | cd4c5a65b9d91fd84408205c3d20554122037730 (patch) | |
tree | 3495b44cf34e129c3156224fb2353949221203ee /src/gui/dialogs | |
parent | fde7966c1b6122ed904d30e1f6e83eb8cd3a80b2 (diff) | |
download | Qt-cd4c5a65b9d91fd84408205c3d20554122037730.zip Qt-cd4c5a65b9d91fd84408205c3d20554122037730.tar.gz Qt-cd4c5a65b9d91fd84408205c3d20554122037730.tar.bz2 |
Make S60 integration optional.
This is more a cleanup of the usage of Q_WS_S60 vs. Q_OS_SYMBIAN than
anything else. One of the side effects of this work was that it was
relatively little work to get QtGui compiling when Q_WS_S60 is not
defined.
Based on this we introduce two new configure options that control S60
integration. Currently the -no-s60 option will not work entirely
because the 's60main' module has not yet been refactored and still has
a dependancy on the S60 libraries.
Reviewed-by: axis <qt-info@nokia.com>
Diffstat (limited to 'src/gui/dialogs')
-rw-r--r-- | src/gui/dialogs/qdialog.cpp | 15 | ||||
-rw-r--r-- | src/gui/dialogs/qfiledialog.cpp | 2 |
2 files changed, 6 insertions, 11 deletions
diff --git a/src/gui/dialogs/qdialog.cpp b/src/gui/dialogs/qdialog.cpp index c7ea5f0..42755dc 100644 --- a/src/gui/dialogs/qdialog.cpp +++ b/src/gui/dialogs/qdialog.cpp @@ -64,11 +64,9 @@ extern bool qt_wince_is_mobile(); //defined in qguifunctions_wce.cpp extern bool qt_wince_is_smartphone(); //is defined in qguifunctions_wce.cpp #elif defined(Q_WS_X11) # include "../kernel/qt_x11_p.h" -#elif defined(Q_WS_S60) +#elif defined(Q_OS_SYMBIAN) # include "qfiledialog.h" -#endif -#if defined(Q_OS_SYMBIAN) -#include "qmenubar.h" +# include "qmenubar.h" #endif #ifndef SPI_GETSNAPTODEFBUTTON # define SPI_GETSNAPTODEFBUTTON 95 @@ -500,16 +498,13 @@ int QDialog::exec() if (!findChild<QMenuBar *>()) menuBar = new QMenuBar(this); #endif -#endif - -#if !defined(Q_WS_S60) - show(); -#else + if (qobject_cast<QFileDialog *>(this)) showFullScreen(); else +#endif // Q_OS_SYMBIAN + show(); -#endif #ifdef Q_WS_MAC d->mac_nativeDialogModalHelp(); diff --git a/src/gui/dialogs/qfiledialog.cpp b/src/gui/dialogs/qfiledialog.cpp index ee12412..f1382fe 100644 --- a/src/gui/dialogs/qfiledialog.cpp +++ b/src/gui/dialogs/qfiledialog.cpp @@ -58,7 +58,7 @@ #include <qdebug.h> #include <qapplication.h> #include <qstylepainter.h> -#if !defined(Q_WS_WINCE) && !defined(Q_WS_S60) +#if !defined(Q_WS_WINCE) && !defined(Q_OS_SYMBIAN) #include "ui_qfiledialog.h" #else #define Q_EMBEDDED_SMALLSCREEN |