diff options
author | Elvis Angelaccio <elvis.angelaccio@kde.org> | 2017-04-19 21:30:14 +0200 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2017-04-19 22:59:41 +0000 |
commit | 80432021146d62ec6ffd0798f2228f741f0b9fad (patch) | |
tree | e4b1fd17003056efc1f8cfafb5a3175342a5a0f3 /tests | |
parent | 97850b952ca754ce8822a6f9e84af39311c0ea53 (diff) |
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/widgets/widgets/qlineedit/tst_qlineedit.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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) |