summaryrefslogtreecommitdiff
Unidiff
Diffstat (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
@@ -251,60 +251,61 @@ syntaxContextData* SyntaxDocument::getGroupInfo(const QString& mainGroupName, co
251 if (e->tagName().compare(mainGroupName)==0 ) 251 if (e->tagName().compare(mainGroupName)==0 )
252 { 252 {
253 Opie::XMLElement *e1=e->firstChild(); 253 Opie::XMLElement *e1=e->firstChild();
254 254
255 while (e1) 255 while (e1)
256 { 256 {
257 kdDebug(13010)<<"in SyntaxDocument::getGroupInfo (inner loop) " <<endl; 257 kdDebug(13010)<<"in SyntaxDocument::getGroupInfo (inner loop) " <<endl;
258 if (e1->tagName()==group+"s") 258 if (e1->tagName()==group+"s")
259 { 259 {
260 syntaxContextData *data=new ( syntaxContextData); 260 syntaxContextData *data=new ( syntaxContextData);
261 data->parent=e1; 261 data->parent=e1;
262 data->currentGroup=0; 262 data->currentGroup=0;
263 data->item=0; 263 data->item=0;
264 return data; 264 return data;
265 } 265 }
266 266
267 e1=e1->nextChild(); 267 e1=e1->nextChild();
268 } 268 }
269 269
270 kdDebug(13010) << "WARNING : getGroupInfo returning null :1 " << endl; 270 kdDebug(13010) << "WARNING : getGroupInfo returning null :1 " << endl;
271 return 0; 271 return 0;
272 } 272 }
273 273
274 e=e->nextChild(); 274 e=e->nextChild();
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}