MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / resetSettings

Method resetSettings

tests/testide.cpp:7–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include "ide.h"
6
7 void TestMocker::resetSettings() {
8 QSettings settings;
9 settings.clear();
10 settings.beginGroup("ide");
11 // Suppress prompt for enabling version check
12 settings.setValue("lastCheck21", QDate::currentDate().toString());
13 settings.setValue("uuid", QUuid::createUuid().toString());
14 settings.setValue("checkforupdates21", false);
15 settings.sync();
16}
17
18int main(int argc, char *argv[])
19{

Callers

nothing calls this directly

Calls 2

clearMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected