* Reads a list of integer values from the application settings. */
| 42 | * Reads a list of integer values from the application settings. |
| 43 | */ |
| 44 | QList<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. |
no outgoing calls
no test coverage detected