summaryrefslogtreecommitdiff
path: root/noncore/apps/confedit/listviewitemconffile.cpp
authortille <tille>2002-07-07 17:18:50 (UTC)
committer tille <tille>2002-07-07 17:18:50 (UTC)
commit04f29267e391eb4ad7ff9fc86468f6ccd1bd8f6d (patch) (unidiff)
tree91ed01ce29ec4dfd478f75239f874a22d1672a14 /noncore/apps/confedit/listviewitemconffile.cpp
parenta72877e867e70784e3c865fa2948ac40f72b5c39 (diff)
downloadopie-04f29267e391eb4ad7ff9fc86468f6ccd1bd8f6d.zip
opie-04f29267e391eb4ad7ff9fc86468f6ccd1bd8f6d.tar.gz
opie-04f29267e391eb4ad7ff9fc86468f6ccd1bd8f6d.tar.bz2
better layout
Diffstat (limited to 'noncore/apps/confedit/listviewitemconffile.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/confedit/listviewitemconffile.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/noncore/apps/confedit/listviewitemconffile.cpp b/noncore/apps/confedit/listviewitemconffile.cpp
index 228421b..1f85095 100644
--- a/noncore/apps/confedit/listviewitemconffile.cpp
+++ b/noncore/apps/confedit/listviewitemconffile.cpp
@@ -22,3 +22,3 @@ ListViewItemConfFile::ListViewItemConfFile(QFileInfo *file, QListView *parent)
22 confFileInfo = file; 22 confFileInfo = file;
23 parseFile(); 23// parseFile();
24 displayText(); 24 displayText();
@@ -43,2 +43,3 @@ void ListViewItemConfFile::parseFile()
43{ 43{
44 //qDebug("ListViewItemConfFile::parseFile BEGIN");
44 QFile confFile(confFileInfo->absFilePath()); 45 QFile confFile(confFileInfo->absFilePath());
@@ -54,3 +55,3 @@ void ListViewItemConfFile::parseFile()
54 s = t.readLine().stripWhiteSpace(); 55 s = t.readLine().stripWhiteSpace();
55 //qDebug( "line: >%s<\n", s.latin1() ); 56 //qDebug( "line: >%s<\n", s.latin1() );
56 if (s.contains("<?xml")) 57 if (s.contains("<?xml"))
@@ -64,2 +65,3 @@ void ListViewItemConfFile::parseFile()
64 group = s.mid(1,s.length()-2); 65 group = s.mid(1,s.length()-2);
66 if (!groupItem) groupItem = new ListViewItemConfigEntry(this, tr("no group") );
65 groupItem = new ListViewItemConfigEntry(this, group ); 67 groupItem = new ListViewItemConfigEntry(this, group );
@@ -69,3 +71,4 @@ void ListViewItemConfFile::parseFile()
69 { 71 {
70 // qDebug("got key"+s); 72// qDebug("got key"+s);
73 if (!groupItem) qDebug("PANIK NO GROUP! >%s<",group.latin1());
71 item = new ListViewItemConfigEntry(this, group, s ); 74 item = new ListViewItemConfigEntry(this, group, s );
@@ -75,4 +78,4 @@ void ListViewItemConfFile::parseFile()
75 confFile.close(); 78 confFile.close();
76 unchanged();
77 setExpandable( _valid ); 79 setExpandable( _valid );
80 //qDebug("ListViewItemConfFile::parseFile END");
78} 81}
@@ -142 +145,7 @@ QString ListViewItemConfFile::backupFileName()
142} 145}
146
147
148void ListViewItemConfFile::expand()
149{
150 parseFile();
151}