Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/dialogs/qmessagebox.cpp

    r651 r769  
    6666#include <QtGui/qclipboard.h>
    6767
     68#ifndef QT_NO_STYLE_S60
     69#include <qs60style.h>
     70#endif
     71
    6872#ifdef Q_WS_WINCE
    6973extern bool qt_wince_is_mobile();    //defined in qguifunctions_wince.cpp
     
    315319            width = hardLimit;
    316320        }
     321    }
    317322#ifdef Q_WS_S60
    318323        // in S60 portait messageBoxes should always occupy maximum width
     
    324329        }
    325330#endif
    326     }
    327331
    328332    if (informativeLabel) {
     
    354358                     ? layout->totalHeightForWidth(width)
    355359                     : 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
    356370    q->setFixedSize(width, height);
    357371    QCoreApplication::removePostedEvents(q, QEvent::LayoutRequest);
Note: See TracChangeset for help on using the changeset viewer.