From 9ff034f3b6124b23aded0ce53dcbc94c8c024fe5 Mon Sep 17 00:00:00 2001 From: Cyrille Valladeau <cyrille.valladeau@c-s.fr> Date: Wed, 26 Oct 2011 15:15:38 +0200 Subject: [PATCH] ENH: improve Qt doc --- Code/Wrappers/QtWidget/otbWrapperQtWidgetView.cxx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Code/Wrappers/QtWidget/otbWrapperQtWidgetView.cxx b/Code/Wrappers/QtWidget/otbWrapperQtWidgetView.cxx index 5d44c3c3f0..a06e784e28 100644 --- a/Code/Wrappers/QtWidget/otbWrapperQtWidgetView.cxx +++ b/Code/Wrappers/QtWidget/otbWrapperQtWidgetView.cxx @@ -241,12 +241,13 @@ void QtWidgetView::SetDocParameters( std::string & val ) void QtWidgetView::GetDocParameterGroup( std::string & val, const std::string & key, int level ) { - std::string spaces0, equal0; + std::string spaces, equals; for(unsigned int i=0; i<level; i++) { - spaces0.append("   "); - equal0.append("==="); + spaces.append(" "); + equals.append("==="); } + equals.append("==="); Parameter * paramGr = m_Application->GetParameterByKey( key ); if( !dynamic_cast<ParameterGroup *>(paramGr) ) @@ -264,13 +265,13 @@ void QtWidgetView::GetDocParameterGroup( std::string & val, const std::string & Parameter::Pointer param = m_Application->GetParameterByKey( fullKey ); if( m_Application->GetParameterType(fullKey) != ParameterType_Group ) { - oss << "<i>" << param->GetName()<< ":</i><br />"; - oss << param->GetDescription()<<"<br>"; + oss << "<i>" << spaces << param->GetName()<< ":</i><br />"; + oss << spaces << param->GetDescription()<<"<br>"; oss << "<br />"; } else { - oss << "<b><i>"<<param->GetName()<<"</i></b> ("<<param->GetDescription()<<")<br />"; + oss << "<b><i>" << equals << param->GetName()<<"</i></b> ("<<param->GetDescription()<<")<br />"; std::string grDoc; GetDocParameterGroup( grDoc, fullKey, level+1); oss<<grDoc; -- GitLab