From 80432021146d62ec6ffd0798f2228f741f0b9fad Mon Sep 17 00:00:00 2001 From: Elvis Angelaccio Date: Wed, 19 Apr 2017 21:30:14 +0200 Subject: 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 --- tests/auto/widgets/widgets/qlineedit/tst_qlineedit.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/auto/widgets/widgets/qlineedit/tst_qlineedit.cpp b/tests/auto/widgets/widgets/qlineedit/tst_qlineedit.cpp index b7628b30e9..139aaa7371 100644 --- a/tests/auto/widgets/widgets/qlineedit/tst_qlineedit.cpp +++ b/tests/auto/widgets/widgets/qlineedit/tst_qlineedit.cpp @@ -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) -- cgit v1.2.3