How to temporarily change KConfig-data for a unit test?
- Date: Tue, 13 Feb 2018 13:14:57 +0100
- From: Michael Heidelbach <ottwolt@xxxxxxxxx>
- Subject: How to temporarily change KConfig-data for a unit test?
Currently I'm working on baloo-widgets. For a unit test I need to
temporarily change KConfig data.
My approach would be like this:
KConfig config("baloofileinformationrc", KConfig::NoGlobals);
KConfigGroup settings = config.group("Show");
set everything to true here.
Revert the changes incleanupTestCase();
How is this done most efficiently and without messing too much with