summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/widgets
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@qt.io>2020-08-18 17:04:21 +0200
committerCristian Adam <cristian.adam@qt.io>2020-08-19 12:46:10 +0200
commitddf8b2770c73e68a90691524e81bef32280b93e0 (patch)
tree17f20b6685d6011f2d91743514e3438dcc956b4d /tests/auto/widgets/widgets
parent765f503b1e0b3ab18b1847fb2d91aa3e9da94ecb (diff)
tst_qplainttextedit: Do not use paste() method with no clipboard
On QNX the test fails to build because there is no clipboard feature and the code is using the paste() method which doesn't exist. Task-number: QTBUG-83202 Change-Id: Ie070ec8850b528e122e954074a1a0a3c78a14248 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests/auto/widgets/widgets')
-rw-r--r--tests/auto/widgets/widgets/qplaintextedit/tst_qplaintextedit.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/widgets/widgets/qplaintextedit/tst_qplaintextedit.cpp b/tests/auto/widgets/widgets/qplaintextedit/tst_qplaintextedit.cpp
index 2f69518663..d3b3f72367 100644
--- a/tests/auto/widgets/widgets/qplaintextedit/tst_qplaintextedit.cpp
+++ b/tests/auto/widgets/widgets/qplaintextedit/tst_qplaintextedit.cpp
@@ -150,7 +150,9 @@ private slots:
#if QT_CONFIG(scrollbar)
void updateAfterChangeCenterOnScroll();
#endif
+#ifndef QT_NO_CLIPBOARD
void updateCursorPositionAfterEdit();
+#endif
private:
void createSelection();
@@ -1756,6 +1758,7 @@ void tst_QPlainTextEdit::updateAfterChangeCenterOnScroll()
#endif
+#ifndef QT_NO_CLIPBOARD
void tst_QPlainTextEdit::updateCursorPositionAfterEdit()
{
QPlainTextEdit plaintextEdit;
@@ -1800,6 +1803,7 @@ void tst_QPlainTextEdit::updateCursorPositionAfterEdit()
// The curser should move back to the end of the copied text
QCOMPARE(plaintextEdit.textCursor().position(), initialPosition + txt.length());
}
+#endif
QTEST_MAIN(tst_QPlainTextEdit)
#include "tst_qplaintextedit.moc"