elemPropertyData.cpp 789 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #include "elemPropertyData.h"
  2. ElemPropertyData::ElemPropertyData()
  3. {
  4. //TODO: 把默认图标变成程序内部资源
  5. iconPath = "/Users/menglanluo/菜狗.png";
  6. dropConfig = 0;
  7. }
  8. bool ElemPropertyData::isSingleContainerKey(QString poolKey,QString newKey)
  9. {
  10. for(const auto &i:container[poolKey].table){
  11. if(newKey == i.key){
  12. return false;
  13. }
  14. }
  15. return true;
  16. }
  17. bool ElemPropertyData::isSingleChildElemName(QString newName)
  18. {
  19. for(const auto &i:childElem){
  20. if(newName == i.name){
  21. return false;
  22. }
  23. }
  24. return true;
  25. }
  26. bool ElemPropertyData::isSingleAnimName(QString newName)
  27. {
  28. for(const auto &i:statusEffect){
  29. if(newName == i.name){
  30. return false;
  31. }
  32. }
  33. return true;
  34. }