From cad4889e490f4376849744ec6ab3c84c71807706 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Mon, 1 Apr 2019 10:28:02 +0200 Subject: Add Notify capability to revertToDefault This enables KConfigWatcher to detect those changes, too. Differential Revision: https://phabricator.kde.org/D20039 --- autotests/kentrymaptest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'autotests/kentrymaptest.cpp') diff --git a/autotests/kentrymaptest.cpp b/autotests/kentrymaptest.cpp index 5e39df54..090e497a 100644 --- a/autotests/kentrymaptest.cpp +++ b/autotests/kentrymaptest.cpp @@ -123,11 +123,11 @@ void KEntryMapTest::testDefault() QCOMPARE(entry1->mValue, entry2->mValue); // revert entry1 - map.revertEntry(group1, key1); + map.revertEntry(group1, key1, EntryOptions()); QCOMPARE(defaultEntry->mValue, entry1->mValue); // revert entry2, no default --> should be marked as deleted - map.revertEntry(group1, key2); + map.revertEntry(group1, key2, EntryOptions()); QCOMPARE(entry2->mValue, QByteArray()); QVERIFY(entry2->bDirty); QVERIFY(entry2->bReverted); -- cgit v1.2.1