summaryrefslogtreecommitdiff
path: root/client/test/testlineedit.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/test/testlineedit.cc')
-rw-r--r--client/test/testlineedit.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/client/test/testlineedit.cc b/client/test/testlineedit.cc
index 8b30295..0cf70fd 100644
--- a/client/test/testlineedit.cc
+++ b/client/test/testlineedit.cc
@@ -16,19 +16,19 @@ private slots:
{
QDomDocument doc; doc.setContent(xml);
QDomElement e = doc.documentElement();
- LineEdit le(e, NULL);
+ LineEdit le(e, createMacroWindow());
QString teststring("hello");
- QTest::keyClicks(&le, teststring);
- QCOMPARE(le.getValue(), teststring);
+ QTest::keyClicks(le.qwidget(), teststring);
+ QCOMPARE(le.value(), teststring);
}
void changeEmits()
{
QDomDocument doc; doc.setContent(xml);
QDomElement e = doc.documentElement();
- LineEdit le(e, NULL);
+ LineEdit le(e, createMacroWindow());
QSignalSpy spy(&le, SIGNAL(wasChanged()));
- QTest::keyClicks(&le, "h");
+ QTest::keyClicks(le.qwidget(), "h");
QCOMPARE(spy.count(), 1);
}
};