summaryrefslogtreecommitdiff
path: root/noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp
Unidiff
Diffstat (limited to 'noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp b/noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp
index 3390bdb..e45daa4 100644
--- a/noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp
+++ b/noncore/apps/tinykate/libkate/document/katesyntaxdocument.cpp
@@ -275,36 +275,37 @@ syntaxContextData* SyntaxDocument::getGroupInfo(const QString& mainGroupName, co
275 } 275 }
276 276
277 kdDebug(13010) << "WARNING : getGroupInfo returning null :2" << endl; 277 kdDebug(13010) << "WARNING : getGroupInfo returning null :2" << endl;
278 return 0; 278 return 0;
279} 279}
280 280
281 281
282QStringList& SyntaxDocument::finddata(const QString& mainGroup,const QString& type,bool clearList) 282QStringList& SyntaxDocument::finddata(const QString& mainGroup,const QString& type,bool clearList)
283{ 283{
284 Opie::XMLElement *e = m_root->firstChild(); 284 Opie::XMLElement *e = m_root->firstChild();
285 if (clearList) 285 if (clearList)
286 m_data.clear(); 286 m_data.clear();
287 287
288 for(e=e->firstChild(); e; e=e->nextChild()) 288 for(e=e->firstChild(); e; e=e->nextChild())
289 { 289 {
290 if (e->tagName()==mainGroup) 290 if (e->tagName()==mainGroup)
291 { 291 {
292 for (Opie::XMLElement *e1=e->firstChild();e1;e1=e1->nextChild()) 292 for (Opie::XMLElement *e1=e->firstChild();e1;e1=e1->nextChild())
293 { 293 {
294 if (e1->tagName()!="list") continue; 294 if (e1->tagName()!="list") continue;
295 295
296 if (e1->attribute("name")==type) 296 if (e1->attribute("name")==type)
297 { 297 {
298 for (Opie::XMLElement *e2=e1->firstChild();e2;e2=e2->nextChild()) 298 for (Opie::XMLElement *e2=e1->firstChild();e2;e2=e2->nextChild())
299 qDebug("FOUND A LIST ENTRY("+e2->tagName()+"):"+e2->value()); 299 {
300 m_data+="TEST";//e2->value().stripWhiteSpace(); 300 qDebug("FOUND A LIST ENTRY("+e2->tagName()+"):"+e2->firstChild()->value());
301 301 m_data+=e2->firstChild()->value().stripWhiteSpace();
302 }
302 break; 303 break;
303 } 304 }
304 } 305 }
305 break; 306 break;
306 } 307 }
307 } 308 }
308 309
309 return m_data; 310 return m_data;
310} 311}