mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-26 17:16:20 +00:00
Identation
--HG-- branch : gsoc2014-dfighter
This commit is contained in:
parent
a222e44eaa
commit
8ff5317f01
1 changed files with 20 additions and 20 deletions
|
@ -346,33 +346,33 @@ QtProperty *PropertyEditorWidget::addConstStringArrayProperty(const NLLIGO::IPro
|
||||||
// Fill qt property
|
// Fill qt property
|
||||||
m_constStrArrPropMgr->setStrings(prop, listEnums);
|
m_constStrArrPropMgr->setStrings(prop, listEnums);
|
||||||
|
|
||||||
const NLLIGO::IProperty *ligoProperty;
|
const NLLIGO::IProperty *ligoProperty;
|
||||||
std::vector<std::string> vectString;
|
std::vector<std::string> vectString;
|
||||||
|
|
||||||
if (primitive->getPropertyByName (parameter.Name.c_str(), ligoProperty))
|
if (primitive->getPropertyByName (parameter.Name.c_str(), ligoProperty))
|
||||||
{
|
|
||||||
const NLLIGO::CPropertyStringArray *const propStringArray = dynamic_cast<const NLLIGO::CPropertyStringArray *> (ligoProperty);
|
|
||||||
if (propStringArray)
|
|
||||||
{
|
{
|
||||||
const std::vector<std::string> &vectString = propStringArray->StringArray;
|
const NLLIGO::CPropertyStringArray *const propStringArray = dynamic_cast<const NLLIGO::CPropertyStringArray *> (ligoProperty);
|
||||||
if (!vectString.empty())
|
if (propStringArray)
|
||||||
{
|
{
|
||||||
std::string temp;
|
const std::vector<std::string> &vectString = propStringArray->StringArray;
|
||||||
for (size_t i = 0; i < vectString.size(); i++)
|
if (!vectString.empty())
|
||||||
{
|
{
|
||||||
temp += vectString[i];
|
std::string temp;
|
||||||
if (i != (vectString.size() - 1))
|
for (size_t i = 0; i < vectString.size(); i++)
|
||||||
temp += '\n';
|
{
|
||||||
|
temp += vectString[i];
|
||||||
|
if (i != (vectString.size() - 1))
|
||||||
|
temp += '\n';
|
||||||
|
}
|
||||||
|
m_constStrArrPropMgr->setValue(prop, temp.c_str());
|
||||||
|
prop->setToolTip(temp.c_str());
|
||||||
}
|
}
|
||||||
m_constStrArrPropMgr->setValue(prop, temp.c_str());
|
}
|
||||||
prop->setToolTip(temp.c_str());
|
else
|
||||||
|
{
|
||||||
|
m_constStrArrPropMgr->setValue(prop, "StringArray :(");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
m_constStrArrPropMgr->setValue(prop, "StringArray :(");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue