MCPcopy Create free account
hub / github.com/Entware/Entware / readSizes

Method readSizes

scripts/config/qconf.cc:44–62  ·  view source on GitHub ↗

* Reads a list of integer values from the application settings. */

Source from the content-addressed store, hash-verified

42 * Reads a list of integer values from the application settings.
43 */
44QList<int> ConfigSettings::readSizes(const QString& key, bool *ok)
45{
46 QList<int> result;
47
48 if (contains(key))
49 {
50 QStringList entryList = value(key).toStringList();
51 QStringList::Iterator it;
52
53 for (it = entryList.begin(); it != entryList.end(); ++it)
54 result.push_back((*it).toInt());
55
56 *ok = true;
57 }
58 else
59 *ok = false;
60
61 return result;
62}
63
64/**
65 * Writes a list of integer values to the application settings.

Callers 2

ConfigSearchWindowMethod · 0.80
ConfigMainWindowMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected