MCPcopy Create free account
hub / github.com/cpeditor/cpeditor / createStringWrapper

Function createStringWrapper

src/Settings/ValueWrapper.cpp:269–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267}
268
269Wrapper<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
286Wrapper<int> *createIntWrapper(const QString &type)
287{

Callers 1

Calls 1

isEmptyMethod · 0.80

Tested by

no test coverage detected