Diffstat (limited to 'noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp b/noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp index 9fa4452..d8f5aa7 100644 --- a/noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp +++ b/noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp | |||
@@ -48,27 +48,25 @@ void SyntaxDocument::setIdentifier(const QString& identifier) | |||
48 | } | 48 | } |
49 | 49 | ||
50 | SyntaxDocument::~SyntaxDocument() | 50 | SyntaxDocument::~SyntaxDocument() |
51 | { | 51 | { |
52 | } | 52 | } |
53 | 53 | ||
54 | void SyntaxDocument::setupModeList(bool force) | 54 | void SyntaxDocument::setupModeList(bool force) |
55 | { | 55 | { |
56 | 56 | ||
57 | if (myModeList.count() > 0) return; | 57 | if (myModeList.count() > 0) return; |
58 | 58 | ||
59 | KateConfig *config=KGlobal::config(); | 59 | KateConfig *config=KGlobal::config(); |
60 | KStandardDirs *dirs = KGlobal::dirs(); | ||
61 | 60 | ||
62 | // QStringList list=dirs->findAllResources("data","kate/syntax/*.xml",false,true); | ||
63 | QString path=QPEApplication::qpeDir() +"share/tinykate/syntax/"; | 61 | QString path=QPEApplication::qpeDir() +"share/tinykate/syntax/"; |
64 | 62 | ||
65 | QDir dir(path); | 63 | QDir dir(path); |
66 | QStringList list=dir.entryList("*.xml"); | 64 | QStringList list=dir.entryList("*.xml"); |
67 | 65 | ||
68 | for ( QStringList::Iterator it = list.begin(); it != list.end(); ++it ) | 66 | for ( QStringList::Iterator it = list.begin(); it != list.end(); ++it ) |
69 | { | 67 | { |
70 | QString Group="Highlighting_Cache"+path+*it; | 68 | QString Group="Highlighting_Cache"+path+*it; |
71 | if ((config->hasGroup(Group)) && (!force)) | 69 | if ((config->hasGroup(Group)) && (!force)) |
72 | { | 70 | { |
73 | config->setGroup(Group); | 71 | config->setGroup(Group); |
74 | syntaxModeListItem *mli=new syntaxModeListItem; | 72 | syntaxModeListItem *mli=new syntaxModeListItem; |