Re: How to temporarily change KConfig-data for a unit test?

2018-02-14 Thread Martin Flöser
Am 2018-02-13 21:44, schrieb Michael Heidelbach: On 13.02.2018 20:38, Martin Flöser wrote: Am 2018-02-13 15:42, schrieb Aleix Pol: On Tue, Feb 13, 2018 at 1:14 PM, Michael Heidelbach wrote: Hi! Currently I'm working on baloo-widgets. For a unit test I need to temporarily

Re: How to temporarily change KConfig-data for a unit test?

2018-02-13 Thread Michael Heidelbach
On 13.02.2018 20:38, Martin Flöser wrote: Am 2018-02-13 15:42, schrieb Aleix Pol: On Tue, Feb 13, 2018 at 1:14 PM, Michael Heidelbach wrote: Hi! Currently I'm working on baloo-widgets. For a unit test I need to temporarily change KConfig data. My approach would be like

Re: How to temporarily change KConfig-data for a unit test?

2018-02-13 Thread Martin Flöser
Am 2018-02-13 15:42, schrieb Aleix Pol: On Tue, Feb 13, 2018 at 1:14 PM, Michael Heidelbach wrote: Hi! Currently I'm working on baloo-widgets. For a unit test I need to temporarily change KConfig data. My approach would be like this: initTestCase() KConfig

Re: How to temporarily change KConfig-data for a unit test?

2018-02-13 Thread Michael Heidelbach
On 13.02.2018 15:42, Aleix Pol wrote: On Tue, Feb 13, 2018 at 1:14 PM, Michael Heidelbach wrote: Hi! Currently I'm working on baloo-widgets. For a unit test I need to temporarily change KConfig data. My approach would be like this: initTestCase() KConfig

Re: How to temporarily change KConfig-data for a unit test?

2018-02-13 Thread Aleix Pol
On Tue, Feb 13, 2018 at 1:14 PM, Michael Heidelbach wrote: > Hi! > > Currently I'm working on baloo-widgets. For a unit test I need to > temporarily change KConfig data. > > My approach would be like this: > > initTestCase() > > KConfig config("baloofileinformationrc",

How to temporarily change KConfig-data for a unit test?

2018-02-13 Thread Michael Heidelbach
Hi! Currently I'm working on baloo-widgets. For a unit test I need to temporarily change KConfig data. My approach would be like this: initTestCase()     KConfig config("baloofileinformationrc", KConfig::NoGlobals);     KConfigGroup settings = config.group("Show");         set everything