Diffstat (limited to 'noncore/apps/opie-reader/preferences.cpp') (more/less context) (ignore whitespace changes)
-rwxr-xr-x | noncore/apps/opie-reader/preferences.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/noncore/apps/opie-reader/preferences.cpp b/noncore/apps/opie-reader/preferences.cpp index b9397cf..0f59a22 100755 --- a/noncore/apps/opie-reader/preferences.cpp +++ b/noncore/apps/opie-reader/preferences.cpp | |||
@@ -1,25 +1,24 @@ | |||
1 | #include "useqpe.h" | ||
2 | #ifndef USEQPE | 1 | #ifndef USEQPE |
3 | 2 | ||
4 | #include "preferences.h" | 3 | #include "preferences.h" |
5 | 4 | ||
6 | #include <qfile.h> | 5 | #include <qfile.h> |
7 | #include <qtextstream.h> | 6 | #include <qtextstream.h> |
8 | 7 | ||
9 | Config::Config(const QString& _fn) : fname(_fn) | 8 | Config::Config(const QString& _fn) : fname(_fn) |
10 | { | 9 | { |
11 | // qDebug("Config::Config:%s", (const char*)fname); | 10 | // qDebug("Config::Config:%s", (const char*)fname); |
12 | QFile fl(fname); | 11 | QFile fl(fname); |
13 | if (fl.open(IO_ReadOnly)) | 12 | if (fl.open(IO_ReadOnly)) |
14 | { | 13 | { |
15 | QTextStream t(&fl); | 14 | QTextStream t(&fl); |
16 | QString key, value; | 15 | QString key, value; |
17 | while (!t.eof()) | 16 | while (!t.eof()) |
18 | { | 17 | { |
19 | QString data = t.readLine(); | 18 | QString data = t.readLine(); |
20 | int colon = data.find(':'); | 19 | int colon = data.find(':'); |
21 | if (colon > 0) | 20 | if (colon > 0) |
22 | { | 21 | { |
23 | QString key = data.left(colon); | 22 | QString key = data.left(colon); |
24 | QString value = data.right(data.length()-colon-1); | 23 | QString value = data.right(data.length()-colon-1); |
25 | values[key] = value; | 24 | values[key] = value; |