選択できるのは25トピックまでです。
トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
|
- #include "creatitem.h"
-
- Item *creatItem(const QString &type)
- {
- if (type == "常开") return new Contact(type);
- if (type == "常闭") return new Contact(type);
- if (type == "线圈") return new Coil(type);
- if (type == "比较") return new Comparator(type);
- return nullptr;
- }
|