From 064b3d7b91a526a64c22facba228e3c2fec8fdc8 Mon Sep 17 00:00:00 2001 From: tille Date: Sun, 30 Jun 2002 01:05:42 +0000 Subject: late night --- (limited to 'noncore/apps/confedit/listviewitemconfigentry.cpp') 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 _file = parent->fileName(); _group = group; setKey(key); + _groupOrig = group; + _keyOrig = _key; + _valueOrig = _value; _fileItem->unchanged(); } @@ -107,6 +110,12 @@ void ListViewItemConfigEntry::changed() _fileItem->changed(); } + +void ListViewItemConfigEntry::remove() +{ + delete this; +} + void ListViewItemConfigEntry::save(QTextStream *t) { QString s; @@ -125,4 +134,13 @@ void ListViewItemConfigEntry::save(QTextStream *t) { ((ListViewItemConfigEntry*)it)->save(t); } +} + +void ListViewItemConfigEntry::revert() +{ + _group = _groupOrig; + _key = _keyOrig; + _value = _valueOrig; + _changed=false; + displayText(); } \ No newline at end of file -- cgit v0.9.0.2