| 121 | |
| 122 | template<class T> |
| 123 | T get(const Key &key) const |
| 124 | { |
| 125 | bool exists; |
| 126 | auto skey = QVariant::fromValue(key).toString(); |
| 127 | auto variant = _appconf->getVariant(skey, true, &exists); |
| 128 | |
| 129 | if(!exists && definitions.contains(key)) |
| 130 | { |
| 131 | return convertVariant<T>(definitions[key]); |
| 132 | } |
| 133 | |
| 134 | return convertVariant<T>(variant); |
| 135 | } |
| 136 | |
| 137 | bool exists(const Key &key); |
| 138 |
nothing calls this directly
no test coverage detected