summaryrefslogtreecommitdiff
path: root/noncore/apps/confedit/listviewitemconfigentry.cpp
Unidiff
Diffstat (limited to 'noncore/apps/confedit/listviewitemconfigentry.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/confedit/listviewitemconfigentry.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/apps/confedit/listviewitemconfigentry.cpp b/noncore/apps/confedit/listviewitemconfigentry.cpp
index 0970125..714a154 100644
--- a/noncore/apps/confedit/listviewitemconfigentry.cpp
+++ b/noncore/apps/confedit/listviewitemconfigentry.cpp
@@ -115,36 +115,36 @@ void ListViewItemConfigEntry::remove()
115} 115}
116 116
117void ListViewItemConfigEntry::save(QTextStream *t) 117void ListViewItemConfigEntry::save(QTextStream *t)
118{ 118{
119 QString s; 119 QString s;
120 if (isGroup()) 120 if (isGroup())
121 { 121 {
122 s += "["+_group+"]"; 122 s += "["+_group+"]";
123 _type = Group; 123 _type = Group;
124 }else{ 124 }else{
125 s += _key+" = "+_value; 125 s += _key+" = "+_value;
126 _type = Key; 126 _type = Key;
127 } 127 }
128 s += "\n"; 128 s += "\n";
129 (*t) << s; 129 (*t) << s;
130 _changed = false; 130 _changed = false;
131 for (QListViewItem *it = firstChild(); it!=0;it = it->nextSibling()) 131 for (QListViewItem *it = firstChild(); it!=0;it = it->nextSibling())
132 { 132 {
133 ((ListViewItemConfigEntry*)it)->save(t); 133 ((ListViewItemConfigEntry*)it)->save(t);
134 } 134 }
135} 135}
136 136
137void ListViewItemConfigEntry::revert() 137void ListViewItemConfigEntry::revert()
138{ 138{
139 _group = _groupOrig; 139 _group = _groupOrig;
140 _key = _keyOrig; 140 _key = _keyOrig;
141 _value = _valueOrig; 141 _value = _valueOrig;
142 _changed=false; 142 _changed=false;
143 displayText(); 143 displayText();
144} 144}
145 145
146 146
147void ListViewItemConfigEntry::expand() 147void ListViewItemConfigEntry::expand()
148{ 148{
149 149
150} \ No newline at end of file 150}