summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorninerider <qt-info@nokia.com>2009-09-24 08:39:10 (GMT)
committerninerider <qt-info@nokia.com>2009-09-25 07:51:11 (GMT)
commit7f2d17482c14b83f383c0a6896b419de9c277990 (patch)
treeede36475261332ffe80cd91f39454955ad606ced /tests/auto
parentc433e5a0a75b8945f9e85bc8d943b04acac0bf5e (diff)
downloadQt-7f2d17482c14b83f383c0a6896b419de9c277990.zip
Qt-7f2d17482c14b83f383c0a6896b419de9c277990.tar.gz
Qt-7f2d17482c14b83f383c0a6896b419de9c277990.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/auto')
-rw-r--r--tests/auto/qcombobox/tst_qcombobox.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/qcombobox/tst_qcombobox.cpp b/tests/auto/qcombobox/tst_qcombobox.cpp
index 8dfe836..be1cb98 100644
--- a/tests/auto/qcombobox/tst_qcombobox.cpp
+++ b/tests/auto/qcombobox/tst_qcombobox.cpp
@@ -2118,9 +2118,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();
QTRY_VERIFY(comboBox.isVisible());