summaryrefslogtreecommitdiff
authorjowenn <jowenn>2002-11-10 21:47:40 (UTC)
committer jowenn <jowenn>2002-11-10 21:47:40 (UTC)
commit727eb9283d10cf61cc7f7a8506124cab9f37f2ed (patch) (unidiff)
treeeab18cc8dcb30b390bcded5c9107af9bff42da0a
parent846ab99d6f52efaf3b2cc98231fe5fc985878516 (diff)
downloadopie-727eb9283d10cf61cc7f7a8506124cab9f37f2ed.zip
opie-727eb9283d10cf61cc7f7a8506124cab9f37f2ed.tar.gz
opie-727eb9283d10cf61cc7f7a8506124cab9f37f2ed.tar.bz2
Look in the correct directory for hl files
Diffstat (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
@@ -26,4 +26,4 @@
26#include <kglobal.h> 26#include <kglobal.h>
27 27#include <qpe/qpeapplication.h>
28 28#include <qdir.h>
29 29
@@ -56,3 +56,7 @@ void SyntaxDocument::setupModeList(bool force)
56 56
57 QStringList list=dirs->findAllResources("data","kate/syntax/*.xml",false,true); 57// QStringList list=dirs->findAllResources("data","kate/syntax/*.xml",false,true);
58 QString path=QPEApplication::qpeDir() +"share/tinykate/syntax/";
59
60 QDir dir(path);
61 QStringList list=dir.entryList("*.xml");
58 62
@@ -60,3 +64,3 @@ void SyntaxDocument::setupModeList(bool force)
60 { 64 {
61 QString Group="Highlighting_Cache"+*it; 65 QString Group="Highlighting_Cache"+path+*it;
62 66
@@ -75,4 +79,4 @@ void SyntaxDocument::setupModeList(bool force)
75 { 79 {
76 qDebug("Found a description file:"+(*it)); 80 qDebug("Found a description file:"+path+(*it));
77 setIdentifier(*it); 81 setIdentifier(path+(*it));
78 Opie::XMLElement *e=m_root; 82 Opie::XMLElement *e=m_root;
@@ -93,3 +97,3 @@ void SyntaxDocument::setupModeList(bool force)
93 97
94 mli->identifier = *it; 98 mli->identifier = path+(*it);
95#warning fixme 99#warning fixme