diff options
author | Sami Merila <sami.merila@nokia.com> | 2010-03-25 10:50:48 (GMT) |
---|---|---|
committer | Sami Merila <sami.merila@nokia.com> | 2010-03-25 10:50:48 (GMT) |
commit | 80cf88a395d61c2dee83d484c91f24437be0c0e0 (patch) | |
tree | 92f972c268f34fafb3251d4e0d7e207d6f18e9f9 /src/gui/styles/qs60style.h | |
parent | 126849067d3c9d126606afaacecfef5559c2e657 (diff) | |
download | Qt-80cf88a395d61c2dee83d484c91f24437be0c0e0.zip Qt-80cf88a395d61c2dee83d484c91f24437be0c0e0.tar.gz Qt-80cf88a395d61c2dee83d484c91f24437be0c0e0.tar.bz2 |
QMessageBox is smaller than native MessageBox
Messageboxes are smaller than native ones.
This is due to that native ones have a lot of empty space.
To fix this, we define a new custom pixel metrics that is the minimum
height of one text line messagebox (aka AknPopUp) on the native side.
Then we ensure that the QMessageBox is at least of this height.
Additionally we do some minor styling for QMessageBox:
- the corners graphics are now as rounded as on native side
- the font is set to match the native side
- the top margin space is doubled for dialogs, which is rather good
approximation of native side
Task-number: QTBUG-4875
Reviewed-by: Janne Anttila
Diffstat (limited to 'src/gui/styles/qs60style.h')
-rw-r--r-- | src/gui/styles/qs60style.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/styles/qs60style.h b/src/gui/styles/qs60style.h index af17843..c878538 100644 --- a/src/gui/styles/qs60style.h +++ b/src/gui/styles/qs60style.h @@ -58,7 +58,8 @@ enum { PM_FrameCornerWidth = QStyle::PM_CustomBase + 1, PM_FrameCornerHeight, PM_BoldLineWidth, - PM_ThinLineWidth + PM_ThinLineWidth, + PM_MessageBoxHeight }; class QS60StylePrivate; |