diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-04-28 09:41:06 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-04-28 10:29:05 (GMT) |
commit | c1691ab1f69919c51f8c66732bbc38bae39329df (patch) | |
tree | e2a1d343c164ad1938350dd2d3d32a6c197628ac /src/gui/dialogs | |
parent | 20217d3521a9e59a0730a0eb63d09ffb1c236bdc (diff) | |
download | Qt-c1691ab1f69919c51f8c66732bbc38bae39329df.zip Qt-c1691ab1f69919c51f8c66732bbc38bae39329df.tar.gz Qt-c1691ab1f69919c51f8c66732bbc38bae39329df.tar.bz2 |
Fixed showing messageboxes on small screens.
On small screens use the whole screen width when adjusting the size of
the messagebox.
Task-number: 251925
Reviewed-by: Brad
Diffstat (limited to 'src/gui/dialogs')
-rw-r--r-- | src/gui/dialogs/qmessagebox.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/dialogs/qmessagebox.cpp b/src/gui/dialogs/qmessagebox.cpp index 456b480..5e59501 100644 --- a/src/gui/dialogs/qmessagebox.cpp +++ b/src/gui/dialogs/qmessagebox.cpp @@ -280,6 +280,9 @@ void QMessageBoxPrivate::updateSize() int hardLimit = screenSize.width() - (q->frameGeometry().width() - q->geometry().width()); #else int hardLimit = qMin(screenSize.width() - 480, 1000); // can never get bigger than this + // on small screens allows the messagebox be the same size as the screen + if (screenSize.width() <= 1024) + hardLimit = screenSize.width(); #endif #ifdef Q_WS_MAC int softLimit = qMin(screenSize.width()/2, 420); |