diff options
author | Sami Merila <sami.merila@nokia.com> | 2010-03-05 09:05:54 (GMT) |
---|---|---|
committer | Sami Merila <sami.merila@nokia.com> | 2010-03-05 09:05:54 (GMT) |
commit | 68eea46d309ff82e45c243a7689013f36454c85b (patch) | |
tree | 69d6610609cbee59a125d1e1eb433b6baaa7f958 /src/gui/dialogs/qmessagebox.cpp | |
parent | 4302c8fa7a234f6f4cfc35f572b93a000d199fe3 (diff) | |
download | Qt-68eea46d309ff82e45c243a7689013f36454c85b.zip Qt-68eea46d309ff82e45c243a7689013f36454c85b.tar.gz Qt-68eea46d309ff82e45c243a7689013f36454c85b.tar.bz2 |
QMessageBox is not stretched to screen width if the content is narrow
Currently;
If content of QMessageBox in S60 is less than messagebox's softlimit,
messagebox is not stretched to screen width.
http://bugreports.qt.nokia.com/browse/QTBUG-5539
Fix:
Regardless of content width, messagebox is stretched to screen width.
Task-number: QTBUG-5539
Reviewed-by: Janne Anttila
Diffstat (limited to 'src/gui/dialogs/qmessagebox.cpp')
-rw-r--r-- | src/gui/dialogs/qmessagebox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/dialogs/qmessagebox.cpp b/src/gui/dialogs/qmessagebox.cpp index d1b2e3f..bd2df9c 100644 --- a/src/gui/dialogs/qmessagebox.cpp +++ b/src/gui/dialogs/qmessagebox.cpp @@ -314,6 +314,7 @@ void QMessageBoxPrivate::updateSize() } width = hardLimit; } + } #ifdef Q_WS_S60 // in S60 portait messageBoxes should always occupy maximum width if (QApplication::desktop()->size().height() > QApplication::desktop()->size().width()){ @@ -323,7 +324,6 @@ void QMessageBoxPrivate::updateSize() width = qMin(QApplication::desktop()->size().height(), hardLimit); } #endif - } if (informativeLabel) { label->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored); |