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:
Elvis Angelaccio 2017-04-19 21:30:14 +02:00 committed by Giuseppe D'Angelo
parent 97850b952c
commit 8043202114

View File

@ -4615,6 +4615,9 @@ void tst_QLineEdit::shortcutOverrideOnReadonlyLineEdit()
void tst_QLineEdit::QTBUG59957_clearButtonLeftmostAction()
{
#ifndef QT_BUILD_INTERNAL
QSKIP("This test requires a developer build");
#else
QLineEdit lineEdit;
lineEdit.setClearButtonEnabled(true);
@ -4633,6 +4636,7 @@ void tst_QLineEdit::QTBUG59957_clearButtonLeftmostAction()
continue;
QVERIFY(clearButton->x() < button->x());
}
#endif // QT_BUILD_INTERNAL
}
QTEST_MAIN(tst_QLineEdit)