Diffstat (limited to 'noncore/apps/checkbook/kmolcalc.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/checkbook/kmolcalc.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/apps/checkbook/kmolcalc.cpp b/noncore/apps/checkbook/kmolcalc.cpp index e5ab736..50e1375 100644 --- a/noncore/apps/checkbook/kmolcalc.cpp +++ b/noncore/apps/checkbook/kmolcalc.cpp | |||
@@ -1,8 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * kmolcalc.cpp | 2 | * kmolcalc.cpp |
3 | * | 3 | * |
4 | * Copyright (C) 2000 Tomislav Gountchev <tomi@idiom.com> | 4 | * Copyright (C) 2000 Tomislav Gountchev <tomi@idiom.com> |
5 | * Copyright (C) 2002 Carsten Niehaus <cniehaus@handhelds.org> | ||
5 | */ | 6 | */ |
6 | 7 | ||
7 | /** | 8 | /** |
8 | * KMOLCALC is the calculation engine. It knows about a hashtable of user defined atomic | 9 | * KMOLCALC is the calculation engine. It knows about a hashtable of user defined atomic |
@@ -12,8 +13,9 @@ | |||
12 | 13 | ||
13 | #include "kmolcalc.h" | 14 | #include "kmolcalc.h" |
14 | #include <qdict.h> | 15 | #include <qdict.h> |
15 | #include <qdir.h> | 16 | #include <qdir.h> |
17 | #include <qfile.h> | ||
16 | #include <iostream.h> | 18 | #include <iostream.h> |
17 | 19 | ||
18 | 20 | ||
19 | /** | 21 | /** |
@@ -34,9 +36,9 @@ void KMolCalc::readElstable() { | |||
34 | if (elstable) delete elstable; | 36 | if (elstable) delete elstable; |
35 | elstable = new QDict<SubUnit> (197, TRUE); | 37 | elstable = new QDict<SubUnit> (197, TRUE); |
36 | elstable->setAutoDelete(TRUE); | 38 | elstable->setAutoDelete(TRUE); |
37 | QStringList files;// = // KGlobal::dirs()->findAllResources("appdata", "kmolweights"); | 39 | QStringList files;// = // KGlobal::dirs()->findAllResources("appdata", "kmolweights"); |
38 | // mwfile = locateLocal("data", "kmol")+"/kmolweights"; | 40 | mwfile = "/home/opie/opie/noncore/apps/oxigen/kmolweights"; |
39 | QFile f(mwfile); | 41 | QFile f(mwfile); |
40 | QString* latest_f = &mwfile; | 42 | QString* latest_f = &mwfile; |
41 | for (uint i=0; i<files.count(); i++) { | 43 | for (uint i=0; i<files.count(); i++) { |
42 | if (QFileInfo(QFile(files[i])).lastModified() > QFileInfo(QFile(*latest_f)).lastModified()) { | 44 | if (QFileInfo(QFile(files[i])).lastModified() > QFileInfo(QFile(*latest_f)).lastModified()) { |