#include <QMap>
#include <QString>
|
| QMap< QString, QString > | readSettingsFile (QString const &fileName) |
| | Reads a file containing key-value pairs, separated by colon (:); with one pair per line, and optional end-line comments (everything after the first '' character in the line is ignored).
|
| |
◆ readSettingsFile()
| QMap< QString, QString > readSettingsFile |
( |
QString const & | fileName | ) |
|
Reads a file containing key-value pairs, separated by colon (:); with one pair per line, and optional end-line comments (everything after the first '' character in the line is ignored).
Keys and values are trimmed (i.e. leading and trailing whitespace is removed)
- Parameters
-
| fileName | the name of the file to read |
- Returns
- a map of key-value pairs