Changeset 769 for trunk/src/gui/dialogs/qmessagebox.cpp
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/dialogs/qmessagebox.cpp
r651 r769 66 66 #include <QtGui/qclipboard.h> 67 67 68 #ifndef QT_NO_STYLE_S60 69 #include <qs60style.h> 70 #endif 71 68 72 #ifdef Q_WS_WINCE 69 73 extern bool qt_wince_is_mobile(); //defined in qguifunctions_wince.cpp … … 315 319 width = hardLimit; 316 320 } 321 } 317 322 #ifdef Q_WS_S60 318 323 // in S60 portait messageBoxes should always occupy maximum width … … 324 329 } 325 330 #endif 326 }327 331 328 332 if (informativeLabel) { … … 354 358 ? layout->totalHeightForWidth(width) 355 359 : layout->totalMinimumSize().height(); 360 361 #ifndef QT_NO_STYLE_S60 362 QS60Style *s60Style = 0; 363 s60Style = qobject_cast<QS60Style *>(QApplication::style()); 364 365 //use custom pixel metric to deduce the minimum height of the messagebox 366 if (s60Style) 367 height = qMax(height, s60Style->pixelMetric((QStyle::PixelMetric)PM_MessageBoxHeight)); 368 #endif 369 356 370 q->setFixedSize(width, height); 357 371 QCoreApplication::removePostedEvents(q, QEvent::LayoutRequest);
Note:
See TracChangeset
for help on using the changeset viewer.