aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qsgtextinput
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2011-05-27 11:30:17 +1000
committerMartin Jones <martin.jones@nokia.com>2011-05-27 11:34:54 +1000
commitb10d450e9ea99aa1ad28ff5d939958503f0bd5ea (patch)
treefb181397c0a7d7796e31ae86d463ad4ba9384101 /tests/auto/declarative/qsgtextinput
parent2845d014ec873792897af313c4a86e833d4d2d9b (diff)
Make tests compile.
Diffstat (limited to 'tests/auto/declarative/qsgtextinput')
-rw-r--r--tests/auto/declarative/qsgtextinput/tst_qsgtextinput.cpp6
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;
};