src/gui/dialogs/qdialog.cpp
branchRCL_3
changeset 5 d3bac044e0f0
parent 4 3b1da2848fc7
child 7 3f74d0d4af4c
equal deleted inserted replaced
4:3b1da2848fc7 5:d3bac044e0f0
   263 {
   263 {
   264 #ifdef Q_WS_WINCE
   264 #ifdef Q_WS_WINCE
   265     if (!qt_wince_is_smartphone())
   265     if (!qt_wince_is_smartphone())
   266         setWindowFlags(windowFlags() | Qt::WindowOkButtonHint | QFlag(qt_wince_is_mobile() ? 0 : Qt::WindowCancelButtonHint));
   266         setWindowFlags(windowFlags() | Qt::WindowOkButtonHint | QFlag(qt_wince_is_mobile() ? 0 : Qt::WindowCancelButtonHint));
   267 #endif
   267 #endif
       
   268 
       
   269 #ifdef Q_WS_S60
       
   270     if (S60->avkonComponentsSupportTransparency) {
       
   271         bool noSystemBackground = testAttribute(Qt::WA_NoSystemBackground);
       
   272         setAttribute(Qt::WA_TranslucentBackground); // also sets WA_NoSystemBackground
       
   273         setAttribute(Qt::WA_NoSystemBackground, noSystemBackground); // restore system background attribute
       
   274     }
       
   275 #endif
   268 }
   276 }
   269 
   277 
   270 #ifdef QT3_SUPPORT
   278 #ifdef QT3_SUPPORT
   271 /*!
   279 /*!
   272     \overload
   280     \overload
   291     : QWidget(dd, parent, f | QFlag((f & Qt::WindowType_Mask) == 0 ? Qt::Dialog : 0))
   299     : QWidget(dd, parent, f | QFlag((f & Qt::WindowType_Mask) == 0 ? Qt::Dialog : 0))
   292 {
   300 {
   293 #ifdef Q_WS_WINCE
   301 #ifdef Q_WS_WINCE
   294     if (!qt_wince_is_smartphone())
   302     if (!qt_wince_is_smartphone())
   295         setWindowFlags(windowFlags() | Qt::WindowOkButtonHint | QFlag(qt_wince_is_mobile() ? 0 : Qt::WindowCancelButtonHint));
   303         setWindowFlags(windowFlags() | Qt::WindowOkButtonHint | QFlag(qt_wince_is_mobile() ? 0 : Qt::WindowCancelButtonHint));
       
   304 #endif
       
   305 
       
   306 #ifdef Q_WS_S60
       
   307     if (S60->avkonComponentsSupportTransparency) {
       
   308         bool noSystemBackground = testAttribute(Qt::WA_NoSystemBackground);
       
   309         setAttribute(Qt::WA_TranslucentBackground); // also sets WA_NoSystemBackground
       
   310         setAttribute(Qt::WA_NoSystemBackground, noSystemBackground); // restore system background attribute
       
   311     }
   296 #endif
   312 #endif
   297 }
   313 }
   298 
   314 
   299 /*!
   315 /*!
   300   Destroys the QDialog, deleting all its children.
   316   Destroys the QDialog, deleting all its children.