summaryrefslogtreecommitdiff
path: root/noncore/apps
authorjowenn <jowenn>2002-11-10 21:47:40 (UTC)
committer jowenn <jowenn>2002-11-10 21:47:40 (UTC)
commit727eb9283d10cf61cc7f7a8506124cab9f37f2ed (patch) (side-by-side diff)
treeeab18cc8dcb30b390bcded5c9107af9bff42da0a /noncore/apps
parent846ab99d6f52efaf3b2cc98231fe5fc985878516 (diff)
downloadopie-727eb9283d10cf61cc7f7a8506124cab9f37f2ed.zip
opie-727eb9283d10cf61cc7f7a8506124cab9f37f2ed.tar.gz
opie-727eb9283d10cf61cc7f7a8506124cab9f37f2ed.tar.bz2
Look in the correct directory for hl files
Diffstat (limited to 'noncore/apps') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp18
1 files changed, 11 insertions, 7 deletions
diff --git a/noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp b/noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp
index c51221b..3390bdb 100644
--- a/noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp
+++ b/noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp
@@ -24,8 +24,8 @@
#include <qstringlist.h>
#include <kconfig.h>
#include <kglobal.h>
-
-
+#include <qpe/qpeapplication.h>
+#include <qdir.h>
SyntaxDocument::SyntaxDocument()
{
@@ -54,11 +54,15 @@ void SyntaxDocument::setupModeList(bool force)
KConfig *config=KGlobal::config();
KStandardDirs *dirs = KGlobal::dirs();
- QStringList list=dirs->findAllResources("data","kate/syntax/*.xml",false,true);
+// QStringList list=dirs->findAllResources("data","kate/syntax/*.xml",false,true);
+ QString path=QPEApplication::qpeDir() +"share/tinykate/syntax/";
+
+ QDir dir(path);
+ QStringList list=dir.entryList("*.xml");
for ( QStringList::Iterator it = list.begin(); it != list.end(); ++it )
{
- QString Group="Highlighting_Cache"+*it;
+ QString Group="Highlighting_Cache"+path+*it;
if ((config->hasGroup(Group)) && (!force))
{
@@ -73,8 +77,8 @@ void SyntaxDocument::setupModeList(bool force)
}
else
{
- qDebug("Found a description file:"+(*it));
- setIdentifier(*it);
+ qDebug("Found a description file:"+path+(*it));
+ setIdentifier(path+(*it));
Opie::XMLElement *e=m_root;
if (e)
{
@@ -91,7 +95,7 @@ void SyntaxDocument::setupModeList(bool force)
if (mli->section.isEmpty())
mli->section=i18n("Other");
- mli->identifier = *it;
+ mli->identifier = path+(*it);
#warning fixme
/*
config->setGroup(Group);