summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorSami Merila <sami.merila@nokia.com>2011-08-23 11:55:46 (GMT)
committerSami Merila <sami.merila@nokia.com>2011-08-23 11:55:46 (GMT)
commit0b19ee5ecabfc516256f0a6db0f2e7bc37e703a0 (patch)
tree762628c4ea89cf39e1bb08ca1429cad44c536249 /src/gui/widgets
parent076ac0ee55b54ae3759af76cf5790e31fbd0f7e5 (diff)
downloadQt-0b19ee5ecabfc516256f0a6db0f2e7bc37e703a0.zip
Qt-0b19ee5ecabfc516256f0a6db0f2e7bc37e703a0.tar.gz
Qt-0b19ee5ecabfc516256f0a6db0f2e7bc37e703a0.tar.bz2
In landscape mode QComboboBox popup can not be showed completely
ComboBox popups have regressed in 4.7.4 lately. Combobox popup is shown as smallish square rectangle in landscape orientation. As a fix, let the width of the popup match the height of the screen (native dialogs most of the time have width matching the height of the screen). Task-number: QTBUG-20932 Reviewed-by: Miikka Heikkinen
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/qcombobox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qcombobox.cpp b/src/gui/widgets/qcombobox.cpp
index f4a627b..8a69bdf 100644
--- a/src/gui/widgets/qcombobox.cpp
+++ b/src/gui/widgets/qcombobox.cpp
@@ -2473,7 +2473,7 @@ void QComboBox::showPopup()
} else {
TRect staConTopRect = TRect();
AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EStaconTop, staConTopRect);
- listRect.setWidth(listRect.height());
+ listRect.setWidth(screen.height());
//by default popup is centered on screen in landscape
listRect.moveCenter(screen.center());
if (staConTopRect.IsEmpty()) {