_leaves.insert(std::pair<pqTreeWidgetItemObject *,int>(item3,ll));
std::ostringstream pdm; pdm << name0.toStdString() << "/" << name1.toStdString() << "/" << name2.toStdString() << "/" << name3CppFull;
(static_cast<vtkSMStringVectorProperty *>(SMProperty))->SetElement(2*ll,pdm.str().c_str());
- char tmp2[2]; tmp2[0]=(kk==0?'1':'0'); tmp2[1]='\0';
- std::string tmp(tmp2);
- (static_cast<vtkSMStringVectorProperty *>(SMProperty))->SetElement(2*ll+1,tmp.c_str());
+ ////char tmp2[2]; tmp2[0]=(kk==0?'1':'0'); tmp2[1]='\0';
+ ////std::string tmp(tmp2);
+ ////(static_cast<vtkSMStringVectorProperty *>(SMProperty))->SetElement(2*ll+1,tmp.c_str());
//SMProperty->ResetToDefault();
- item2->setChecked(kk==0);
- item3->setChecked(kk==0);
+ const char *tmp((static_cast<vtkSMStringVectorProperty *>(SMProperty))->GetElement(2*ll+1));
+ ////item2->setChecked(kk==0);
+ ////item3->setChecked(kk==0);
+ item3->setChecked(tmp[0]=='1');
item3->setProperty("PosInStringVector",QVariant(ll));
connect(item3,SIGNAL(checkedStateChanged(bool)),this,SLOT(aLev4HasBeenFired()));
ll++;