author | zecke <zecke> | 2004-10-16 22:31:18 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-10-16 22:31:18 (UTC) |
commit | 4a623a9afe68f8d2d2f9562cb5ab589c0023519c (patch) (unidiff) | |
tree | 63cfeb0e784db5dae6c93596cd07b04217ab4a22 /core/apps/helpbrowser/magictextbrowser.cpp | |
parent | 1633552a8816eaa18b2b06da6573611b2636cee8 (diff) | |
download | opie-4a623a9afe68f8d2d2f9562cb5ab589c0023519c.zip opie-4a623a9afe68f8d2d2f9562cb5ab589c0023519c.tar.gz opie-4a623a9afe68f8d2d2f9562cb5ab589c0023519c.tar.bz2 |
-Remove debug output on appMessage
-Check for Application Pages in help/lang/execname/execname.html as
well. This is needed for qashmoney and could be used for the
other help pages as well
Diffstat (limited to 'core/apps/helpbrowser/magictextbrowser.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/helpbrowser/magictextbrowser.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/core/apps/helpbrowser/magictextbrowser.cpp b/core/apps/helpbrowser/magictextbrowser.cpp index 80495c9..44bf19f 100644 --- a/core/apps/helpbrowser/magictextbrowser.cpp +++ b/core/apps/helpbrowser/magictextbrowser.cpp | |||
@@ -83,11 +83,18 @@ QString MagicTextBrowser::generateQpe(const QString& name) const { | |||
83 | for (QListIterator<AppLnk> it(lnkset.children()); (lnk=it.current()); ++it) { | 83 | for (QListIterator<AppLnk> it(lnkset.children()); (lnk=it.current()); ++it) { |
84 | QString name = lnk->name(); | 84 | QString name = lnk->name(); |
85 | QString icon = lnk->icon(); | 85 | QString icon = lnk->icon(); |
86 | QString helpFile = lnk->exec()+".html"; | 86 | QString exec = lnk->exec(); |
87 | QString helpFile = exec+".html"; | ||
87 | QStringList helpPath = Global::helpPath(); | 88 | QStringList helpPath = Global::helpPath(); |
88 | bool helpExists = FALSE; | 89 | bool helpExists = FALSE; |
89 | for (QStringList::ConstIterator it=helpPath.begin(); it!=helpPath.end() && !helpExists; ++it) | 90 | for (QStringList::ConstIterator it=helpPath.begin(); it!=helpPath.end() && !helpExists; ++it) { |
90 | helpExists = QFile::exists( *it + "/" + helpFile ); | 91 | helpExists = QFile::exists( *it + "/" + helpFile ); |
92 | |||
93 | if( !helpExists && QFile::exists( *it + "/" + exec + "/" + helpFile ) ) { | ||
94 | helpFile = exec + "/" + helpFile; | ||
95 | helpExists = true; | ||
96 | } | ||
97 | } | ||
91 | 98 | ||
92 | if ( helpExists ) { | 99 | if ( helpExists ) { |
93 | r += "<h3><a href="+helpFile+"><img src="+icon+">"+name+"</a></h3>\n"; | 100 | r += "<h3><a href="+helpFile+"><img src="+icon+">"+name+"</a></h3>\n"; |