summaryrefslogtreecommitdiff
path: root/noncore/apps/confedit/listviewitemconfigentry.cpp
authortille <tille>2002-06-30 01:05:42 (UTC)
committer tille <tille>2002-06-30 01:05:42 (UTC)
commit064b3d7b91a526a64c22facba228e3c2fec8fdc8 (patch) (unidiff)
tree98221da79a27bc13b8214b92c8c936c529312e24 /noncore/apps/confedit/listviewitemconfigentry.cpp
parent1f9e13bb2d287a2495e2cbb0f8be0f53c883eae2 (diff)
downloadopie-064b3d7b91a526a64c22facba228e3c2fec8fdc8.zip
opie-064b3d7b91a526a64c22facba228e3c2fec8fdc8.tar.gz
opie-064b3d7b91a526a64c22facba228e3c2fec8fdc8.tar.bz2
late night
Diffstat (limited to 'noncore/apps/confedit/listviewitemconfigentry.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/confedit/listviewitemconfigentry.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/noncore/apps/confedit/listviewitemconfigentry.cpp b/noncore/apps/confedit/listviewitemconfigentry.cpp
index 77ce17d..b947514 100644
--- a/noncore/apps/confedit/listviewitemconfigentry.cpp
+++ b/noncore/apps/confedit/listviewitemconfigentry.cpp
@@ -19,6 +19,9 @@ ListViewItemConfigEntry::ListViewItemConfigEntry(ListViewItemConfFile *parent, Q
19 _file = parent->fileName(); 19 _file = parent->fileName();
20 _group = group; 20 _group = group;
21 setKey(key); 21 setKey(key);
22 _groupOrig = group;
23 _keyOrig = _key;
24 _valueOrig = _value;
22 _fileItem->unchanged(); 25 _fileItem->unchanged();
23} 26}
24 27
@@ -107,6 +110,12 @@ void ListViewItemConfigEntry::changed()
107 _fileItem->changed(); 110 _fileItem->changed();
108} 111}
109 112
113
114void ListViewItemConfigEntry::remove()
115{
116 delete this;
117}
118
110void ListViewItemConfigEntry::save(QTextStream *t) 119void ListViewItemConfigEntry::save(QTextStream *t)
111{ 120{
112 QString s; 121 QString s;
@@ -125,4 +134,13 @@ void ListViewItemConfigEntry::save(QTextStream *t)
125 { 134 {
126 ((ListViewItemConfigEntry*)it)->save(t); 135 ((ListViewItemConfigEntry*)it)->save(t);
127 } 136 }
137}
138
139void ListViewItemConfigEntry::revert()
140{
141 _group = _groupOrig;
142 _key = _keyOrig;
143 _value = _valueOrig;
144 _changed=false;
145 displayText();
128} \ No newline at end of file 146} \ No newline at end of file