1234567891011121314151617181920212223242526272829303132333435363738 |
- #include "elemPropertyData.h"
- ElemPropertyData::ElemPropertyData()
- {
- //TODO: 把默认图标变成程序内部资源
- iconPath = "/Users/menglanluo/菜狗.png";
- dropConfig = 0;
- }
- bool ElemPropertyData::isSingleContainerKey(QString poolKey,QString newKey)
- {
- for(const auto &i:container[poolKey].table){
- if(newKey == i.key){
- return false;
- }
- }
- return true;
- }
- bool ElemPropertyData::isSingleChildElemName(QString newName)
- {
- for(const auto &i:childElem){
- if(newName == i.name){
- return false;
- }
- }
- return true;
- }
- bool ElemPropertyData::isSingleAnimName(QString newName)
- {
- for(const auto &i:statusEffect){
- if(newName == i.name){
- return false;
- }
- }
- return true;
- }
|