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_p.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_p.h')
-rw-r--r-- | src/gui/styles/qs60style_p.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/styles/qs60style_p.h b/src/gui/styles/qs60style_p.h index 8bb2f7b..6ce4960 100644 --- a/src/gui/styles/qs60style_p.h +++ b/src/gui/styles/qs60style_p.h @@ -60,7 +60,7 @@ QT_BEGIN_NAMESPACE const int MAX_NON_CUSTOM_PIXELMETRICS = 92; -const int CUSTOMVALUESCOUNT = 4; +const int CUSTOMVALUESCOUNT = 5; const int MAX_PIXELMETRICS = MAX_NON_CUSTOM_PIXELMETRICS + CUSTOMVALUESCOUNT; @@ -411,7 +411,7 @@ public: SE_TabBarTabWestActive, SE_TabBarTabWestInactive, SE_ListHighlight, - SE_OptionsMenu, + SE_PopupBackground, SE_SettingsList, SE_TableItem, SE_TableHeaderItem, @@ -432,7 +432,7 @@ public: SF_ButtonPressed, SF_FrameLineEdit, SF_ListHighlight, - SF_OptionsMenu, + SF_PopupBackground, SF_SettingsList, SF_TableItem, SF_TableHeaderItem, |