void KstApp::reload() { KstReadLocker ml(&KST::vectorList.lock()); for (KstVectorList::Iterator i = KST::vectorList.begin(); i != KST::vectorList.end(); ++i) { KstRVector *r = dynamic_cast<KstRVector*>((*i).data()); if (r) { r->reload(); } } }
void KstIfaceImpl::reloadVector(const QString& vector) { KstReadLocker ml(&KST::vectorList.lock()); KstVectorList::Iterator v = KST::vectorList.findTag(vector); if (v != KST::vectorList.end()) { (*v)->writeLock(); KstRVector *r = dynamic_cast<KstRVector*>((*v).data()); if (r) { r->reload(); } (*v)->writeUnlock(); } }