| 172 | } |
| 173 | |
| 174 | std::string Widget::buildFullXpath() const { |
| 175 | std::string fullXpathString = this->toXPath(); |
| 176 | std::shared_ptr<Widget> parent = _parent; |
| 177 | while (parent) { |
| 178 | std::string parentXpath = parent->toXPath(); |
| 179 | parentXpath.append(fullXpathString); |
| 180 | fullXpathString = parentXpath; |
| 181 | parent = parent->_parent; |
| 182 | } |
| 183 | return fullXpathString; |
| 184 | } |
| 185 | |
| 186 | Widget::~Widget() { |
| 187 | this->_actions.clear(); |