| 267 | } |
| 268 | |
| 269 | Wrapper<QString> *createStringWrapper(const QString &type) |
| 270 | { |
| 271 | if (type.isEmpty() || type == "QLineEdit") |
| 272 | return new LineEditWrapper(); |
| 273 | if (type == "QPlainTextEdit") |
| 274 | return new PlainTextEditWrapper(); |
| 275 | if (type == "QComboBox") |
| 276 | return new ComboBoxWrapper(); |
| 277 | if (type == "PathItem") |
| 278 | return new PathItemWrapper(); |
| 279 | if (type == "ShortcutItem") |
| 280 | return new ShortcutItemWrapper(); |
| 281 | if (type == "CodecBox") |
| 282 | return new CodecBoxWrapper(); |
| 283 | return nullptr; |
| 284 | } |
| 285 | |
| 286 | Wrapper<int> *createIntWrapper(const QString &type) |
| 287 | { |
no test coverage detected