diff options
Diffstat (limited to 'tests/auto/declarative/qsgtextinput/tst_qsgtextinput.cpp')
-rw-r--r-- | tests/auto/declarative/qsgtextinput/tst_qsgtextinput.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/auto/declarative/qsgtextinput/tst_qsgtextinput.cpp b/tests/auto/declarative/qsgtextinput/tst_qsgtextinput.cpp index 16d478caa0..cbe14a5563 100644 --- a/tests/auto/declarative/qsgtextinput/tst_qsgtextinput.cpp +++ b/tests/auto/declarative/qsgtextinput/tst_qsgtextinput.cpp @@ -1607,12 +1607,10 @@ void tst_qsgtextinput::passwordCharacter() QVERIFY(textInput != 0); textInput->setPasswordCharacter("X"); - QSize contentsSize = textInput->contentsSize(); qreal implicitWidth = textInput->implicitWidth(); textInput->setPasswordCharacter("."); // QTBUG-12383 content is updated and redrawn - QVERIFY(contentsSize != textInput->contentsSize()); QVERIFY(textInput->implicitWidth() < implicitWidth); delete textInput; @@ -2093,10 +2091,10 @@ public: { nbPaint = 0; } - void paint(QPainter *painter) + virtual QSGNode *updatePaintNode(QSGNode *node, UpdatePaintNodeData *data) { nbPaint++; - QSGTextInput::paint(painter); + return QSGTextInput::updatePaintNode(node, data); } int nbPaint; }; |