QLineEdit: fix broken test
Commit 288bfb0bbd added a test that uses QLineEditIconButton, which requires QT_BUILD_INTERNAL to be defined in order for the findChild() call to work as expected. Change-Id: Ieda18f4e26a91322e8a83c14f8d1fbbe4313ecf0 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
parent
97850b952c
commit
8043202114
@ -4615,6 +4615,9 @@ void tst_QLineEdit::shortcutOverrideOnReadonlyLineEdit()
|
|||||||
|
|
||||||
void tst_QLineEdit::QTBUG59957_clearButtonLeftmostAction()
|
void tst_QLineEdit::QTBUG59957_clearButtonLeftmostAction()
|
||||||
{
|
{
|
||||||
|
#ifndef QT_BUILD_INTERNAL
|
||||||
|
QSKIP("This test requires a developer build");
|
||||||
|
#else
|
||||||
QLineEdit lineEdit;
|
QLineEdit lineEdit;
|
||||||
lineEdit.setClearButtonEnabled(true);
|
lineEdit.setClearButtonEnabled(true);
|
||||||
|
|
||||||
@ -4633,6 +4636,7 @@ void tst_QLineEdit::QTBUG59957_clearButtonLeftmostAction()
|
|||||||
continue;
|
continue;
|
||||||
QVERIFY(clearButton->x() < button->x());
|
QVERIFY(clearButton->x() < button->x());
|
||||||
}
|
}
|
||||||
|
#endif // QT_BUILD_INTERNAL
|
||||||
}
|
}
|
||||||
|
|
||||||
QTEST_MAIN(tst_QLineEdit)
|
QTEST_MAIN(tst_QLineEdit)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user