diff options
author | ninerider <qt-info@nokia.com> | 2009-09-24 08:39:10 (GMT) |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@nokia.com> | 2009-10-05 15:48:26 (GMT) |
commit | 509cd7c93248d1e58be4f5dc2368a8707e923329 (patch) | |
tree | f6ad490d27f791855868af6b1291ee161293cb16 /tests | |
parent | e6ea0500b9618966e265d87fb8ca6cd7832f80e0 (diff) | |
download | Qt-509cd7c93248d1e58be4f5dc2368a8707e923329.zip Qt-509cd7c93248d1e58be4f5dc2368a8707e923329.tar.gz Qt-509cd7c93248d1e58be4f5dc2368a8707e923329.tar.bz2 |
tst_QComboBox::task248169_popupWithMinimalSize() fixed for WinCE
Changed the absolute size values for the combobox to desktop
dependent sizes.
Reviewed-by: Joerg
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qcombobox/tst_qcombobox.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/qcombobox/tst_qcombobox.cpp b/tests/auto/qcombobox/tst_qcombobox.cpp index d221077..735433f 100644 --- a/tests/auto/qcombobox/tst_qcombobox.cpp +++ b/tests/auto/qcombobox/tst_qcombobox.cpp @@ -2101,9 +2101,11 @@ void tst_QComboBox::task248169_popupWithMinimalSize() QComboBox comboBox; comboBox.addItems(initialContent); - comboBox.view()->setMinimumWidth(500); QDesktopWidget desktop; - comboBox.setGeometry(desktop.availableGeometry().width() - 200, 100, 200, 100); + QRect desktopSize = desktop.availableGeometry(); + comboBox.view()->setMinimumWidth(desktopSize.width() - 1); + + comboBox.setGeometry(desktopSize.width() - (desktopSize.width() / 4), (desktopSize.width() / 4), (desktopSize.width() / 2), (desktopSize.width() / 4)); comboBox.show(); QTest::qWait(100); |