bool VEContainer::searchObject(QTreeWidgetItem *item){ foreach(VEWall obj, objectWallList){ if (obj.getName() == item->text(0)){ findWall = &obj; return true; } } return false;}
#ifndef VETYPE_H#define VETYPE_H#include "veobject.h"#include <QString>class VEType : public VEObject{private: //fields QString name; //methodsprotected: //fields //methodspublic: //fields //methods VEType(QString name0 = 0); void setName(QString name0); QString getName();};#endif // VETYPE_H
#include "vetype.h"VEType::VEType(QString name0): VEObject(){ name = name0;}void VEType::setName(QString name0){ name = name0;}QString VEType::getName(){ return name;}