| 49 | } |
| 50 | |
| 51 | bool OptionItemBase::accept(const QString& key, const QString& val) |
| 52 | { |
| 53 | if(getSaveName() != key) |
| 54 | return false; |
| 55 | |
| 56 | preserve(); |
| 57 | |
| 58 | ValueMap config; |
| 59 | config.writeEntry(key, val); // Write the value as a string and |
| 60 | read(&config); // use the internal conversion from string to the needed value. |
| 61 | |
| 62 | return true; |
| 63 | } |
| 64 | |
| 65 | void Options::init() |
| 66 | { |
no test coverage detected