Android: Fix QLayout tests
This test requires test data to be available and the testRetainSizeWhenHidden test assumes that a widget will be sized based on its sizeHint(), which does not work on platforms where show() implies showMaximized(). Change-Id: I9bf372d8c0ea94845ae08481ec555fe25dcfebc0 Reviewed-by: BogDan Vatra <bogdan@kde.org>
This commit is contained in:
parent
7a760f5ed9
commit
4448576ae0
@ -11,3 +11,8 @@ wince* {
|
||||
} else {
|
||||
TESTDATA += baseline/*
|
||||
}
|
||||
|
||||
android: !android-no-sdk {
|
||||
RESOURCES += \
|
||||
testdata.qrc
|
||||
}
|
||||
|
5
tests/auto/widgets/kernel/qlayout/testdata.qrc
Normal file
5
tests/auto/widgets/kernel/qlayout/testdata.qrc
Normal file
@ -0,0 +1,5 @@
|
||||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>baseline/smartmaxsize</file>
|
||||
</qresource>
|
||||
</RCC>
|
@ -345,6 +345,10 @@ void tst_QLayout::adjustSizeShouldMakeSureLayoutIsActivated()
|
||||
|
||||
void tst_QLayout::testRetainSizeWhenHidden()
|
||||
{
|
||||
#if defined(Q_OS_ANDROID) && !defined(Q_OS_ANDROID_NO_SDK)
|
||||
QSKIP("Test does not work on platforms which default to showMaximized()");
|
||||
#endif
|
||||
|
||||
QWidget widget;
|
||||
QBoxLayout layout(QBoxLayout::TopToBottom, &widget);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user