MCPcopy Create free account
hub / github.com/dmitry-s93/MControlCenter / getValueVector

Method getValueVector

src/settings.cpp:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29QVector<int> Settings::getValueVector(const QString &key) {
30 QVector<int> value;
31 std::stringstream string_stream(settings.value(key).toString().toStdString());
32 while (string_stream.good()) {
33 std::string a;
34 getline(string_stream, a, '|');
35 value.append(std::stoi(a));
36 }
37 return value;
38}
39
40void Settings::setValue(const QString &key, const QVariant &value) {
41 if (settings.value(key) == value)

Callers 1

loadSettingsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected