void Watches::reinstall() { for (int i = 0; i < childItems.size(); ++i) { Variable* v = static_cast<Variable*>(child(i)); v->attachMaybe(); } }
Variable* Watches::add(const QString& expression) { if (!hasStartedSession()) return 0; Variable* v = currentSession()->variableController()->createVariable( model(), this, expression); appendChild(v); v->attachMaybe(); if (childCount() == 1 && !isExpanded()) { setExpanded(true); } return v; }